File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11language : php
22
3+ env :
4+ global :
5+ - PHPCS=0
6+
7+
38php :
49 - 5.4
510 - 5.5
@@ -15,13 +20,16 @@ matrix:
1520 include :
1621 - php : 5.4
1722 env : ' COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
23+ - php : 5.6
24+ env : PHPCS=1
1825
1926before_script :
2027 - travis_retry composer self-update
2128 - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
2229
2330script :
2431 - phpunit --coverage-text --coverage-clover=coverage.clover
32+ - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=psr2 ./src ./tests; fi"
2533
2634after_script :
2735 - if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
Original file line number Diff line number Diff line change 2121 },
2222 "require-dev" : {
2323 "phpunit/phpunit" : " 4.*" ,
24- "scrutinizer/ocular" : " ~1.1"
24+ "scrutinizer/ocular" : " ~1.1" ,
25+ "squizlabs/php_codesniffer" : " 2.3.*"
2526 },
2627 "autoload" : {
2728 "psr-4" : {
You can’t perform that action at this time.
0 commit comments