• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

consolidation / annotated-command / 937
45%

Build:
DEFAULT BRANCH: master
Ran 19 Sep 2018 03:46AM UTC
Jobs 4
Files 53
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
937

push

travis-ci

web-flow
Improve commandfile discovery for extensions installed via Composer. (#156)

When managing plugins / extensions with Composer, and placing them via Composer Installers, there will
be additional directories placed by Composer that we need to account for when finding commandfiles.

For example, Drush has the following recommended installer path:

    "drush/Commands/contrib/{$name}": ["type:drupal-drush"]

If the Composer project has a name similar to `my-cool-plugin`, then the old discovery code would
produce a namespace that included dashes, and that included the `contrib` portion of the path. Both
of these things are undesirable. PHP namespaces cannot contain dashes, and if the namespace in
the plugin contains "contrib", then it would not be possible to commit a copy of the repository
in a "custom" directory, or directly in "drush/Commands".

This PR transliterates '-' to '_' in namespaces, and also allows clients to define namespace
path components (e.g. 'custom' and 'contrib') that should be removed before returning the discovered
paths and namespaces to the client.

1245 of 1382 relevant lines covered (90.09%)

66.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 937.1 (SCENARIO=symfony4 DEPENDENCIES=highest) 19 Sep 2018 03:46AM UTC 0
90.09
Travis Job 937.1
2 937.2 (SCENARIO=symfony4) 19 Sep 2018 03:46AM UTC 0
90.09
Travis Job 937.2
3 937.3 (DEPENDENCIES=highest) 19 Sep 2018 03:46AM UTC 0
90.09
Travis Job 937.3
4 937.4 19 Sep 2018 03:46AM UTC 0
90.09
Travis Job 937.4
Source Files on build 937
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #937
  • 7990d7c1 on github
  • Prev Build on master (#936)
  • Next Build on master (#938)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc