-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate composer files. #10
Conversation
Hmm... doesn't seem that the failing tests are directly related to this PR. |
Maybe this should be part of the validation Phing tasks, instead of a separate Travis step. |
@danepowell If it's a phing task, when should it be executed? During the build of the docroot, of a deployment artifact, or when tests are run? Maybe a simple warning would suffice? |
I'd like Composer already issues a warning if composer.json and composer.lock are out of sync, the problem is that people don't heed it. A failing test seems like necessary motivation. |
This should be ready to merge, the failing test is unrelated |
Rerunning tests. |
Looks like the failed tests may be related to composer validation:
|
As they should, since it turns out our composer.json is invalid. I will fix. |
An easy and common mistake is to add a module as a composer.json dependency and forget to run
composer update
to generate a new composer.lock. This causes a lot of confusion when the module mysteriously doesn't get deployed.This validates that composer.lock is up to date with composer.json (among other things).