1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00

run php-cs-fixer in ci

This commit is contained in:
Robin Appelman 2017-07-30 15:10:19 +02:00
commit 6adcdc2362

View file

@ -34,6 +34,8 @@ before_script:
script:
- phpunit --coverage-clover coverage.xml --configuration test/phpunit.xml
- IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${$TRAVIS_COMMIT_RANGE}")); unset IFS
- vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --allow-risky yes --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"
- node node_modules/.bin/mocha --recursive
after_success: