File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ install: travis_retry composer update --prefer-dist
2020
2121script :
2222 - vendor/bin/phpcs
23- - vendor/bin/phpcs $(find tests/input/* | sort) -- report=summary --report-file=phpcs.log; diff tests/expected_report.txt phpcs.log
23+ - make test- report
2424
2525stages :
2626 - Validate against schema
4141 - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd lib/Doctrine/ruleset.xml
4242
4343 - stage : Apply fixes
44- before_script :
45- - cp -R tests/input/ tests/input2/
46- script : vendor/bin/phpcbf tests/input2; [ $? -ne 2 ] && diff tests/input2 tests/fixed
44+ script : make test-fix
Original file line number Diff line number Diff line change 1+ .PHONY : test test-report test-fix
2+
3+ test : test-report test-fix
4+
5+ test-report : vendor
6+ @vendor/bin/phpcs ` find tests/input/* | sort` --report=summary --report-file=phpcs.log; diff tests/expected_report.txt phpcs.log
7+
8+
9+ test-fix : vendor
10+ @cp -R tests/input/ tests/input2/
11+ @vendor/bin/phpcbf tests/input2; diff tests/input2 tests/fixed; if [ $$ ? -ne 0 ]; then rm -rf tests/input2/; exit 1; fi
12+ @rm -rf tests/input2/
13+
14+ vendor : composer.json
15+ composer update
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments