Skip to content

Commit

Permalink
Merge pull request #571 from wimg/feature/travis-validate-composer.json
Browse files Browse the repository at this point in the history
Travis/Build: validate the composer.json file
  • Loading branch information
wimg committed Jan 14, 2018
2 parents 39a8843 + 457afeb commit b0372d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -120,6 +120,9 @@ script:
- if [[ "$SNIFF" == "1" ]]; then xmllint --noout ./PHPCompatibility/ruleset.xml; fi
# Check the code-style consistency of the xml files.
- if [[ "$SNIFF" == "1" ]]; then diff -B ./PHPCompatibility/ruleset.xml <(xmllint --format "./PHPCompatibility/ruleset.xml"); fi
# Validate the composer.json file.
# @link https://getcomposer.org/doc/03-cli.md#validate
- if [[ "$LINT" == "1" ]]; then composer validate --no-check-all; fi

after_success:
- if [[ $COVERALLS_VERSION == "^1.0" ]]; then php vendor/bin/coveralls -v -x build/logs/clover.xml; fi
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
"suggest" : {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
},
"license" : "LGPL-3.0",
"license" : "LGPL-3.0-or-later",
"keywords" : [ "compatibility", "phpcs", "standards" ],
"autoload" : {
"psr-4" : {
Expand Down

0 comments on commit b0372d7

Please sign in to comment.