Skip to content

Commit

Permalink
add CS check against v3
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Jan 1, 2017
1 parent c3549da commit 4c4da83
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Expand Up @@ -36,6 +36,9 @@ matrix:
- php: 7.0 - php: 7.0
env: PHPCS=1 DEFAULT=0 env: PHPCS=1 DEFAULT=0


- php: 7.0
env: PHPCS=3 DEFAULT=0

- php: 7.0 - php: 7.0
env: PHPSTAN=1 DEFAULT=0 env: PHPSTAN=1 DEFAULT=0


Expand All @@ -55,6 +58,9 @@ matrix:
- php: 7.1 - php: 7.1
env: PHPSTAN=1 DEFAULT=0 env: PHPSTAN=1 DEFAULT=0


- php: 7.0
env: PHPCS=3 DEFAULT=0

before_install: before_install:
- if [ $HHVM != 1 && $TRAVIS_PHP_VERSION != 7.* ]; then phpenv config-rm xdebug.ini; fi - if [ $HHVM != 1 && $TRAVIS_PHP_VERSION != 7.* ]; then phpenv config-rm xdebug.ini; fi


Expand All @@ -81,13 +87,15 @@ before_install:
- set +H - set +H


before_script: before_script:
- composer install --prefer-dist --no-interaction - if [[ $PHPCS != 3 ]]; then composer install --prefer-dist --no-interaction; fi
- if [[ $PHPCS = 3 ]]; then composer require --dev squizlabs/php_codesniffer=3.0.x-dev@dev cakephp/cakephp-codesniffer=3.0.x-dev@dev; fi


script: script:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml; fi - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi


- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi - if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
- if [[ $PHPCS = 3 ]]; then vendor/bin/phpcs -p -s --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:dev-master && vendor/bin/phpstan analyse -c phpstan.neon -l 0 src; fi - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:dev-master && vendor/bin/phpstan analyse -c phpstan.neon -l 0 src; fi


after_success: after_success:
Expand Down

0 comments on commit 4c4da83

Please sign in to comment.