Skip to content

Commit

Permalink
Make sure composer files are valid
Browse files Browse the repository at this point in the history
The composer.lock is put under version control and it often happens to
be out of sync with the composer.json, which could lead to
hard-to-understand issues.
Using the --strict option here because we might as well aim for a
perfectly valid composer.json
  • Loading branch information
greg0ire committed Nov 16, 2019
1 parent 33b8d02 commit c79d2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -18,7 +18,7 @@ before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer self-update

install: travis_retry composer update --prefer-dist
install: travis_retry composer validate --strict && composer update --prefer-dist

script:
- if [[ "$DB" == "mysql" || "$DB" == "mariadb" ]]; then mysql -e "CREATE SCHEMA doctrine_tests; GRANT ALL PRIVILEGES ON doctrine_tests.* to travis@'%'"; fi
Expand Down

0 comments on commit c79d2e0

Please sign in to comment.