Skip to content
Permalink
Browse files

add CS check against v3

  • Loading branch information...
antograssiot committed Dec 30, 2016
1 parent c3549da commit 4c4da8322d4d270dd64b0e3b192013a2042eb3ac
Showing with 9 additions and 1 deletion.
  1. +9 −1 .travis.yml
@@ -36,6 +36,9 @@ matrix:
- php: 7.0
env: PHPCS=1 DEFAULT=0

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

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

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

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

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

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

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:
- 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 [[ $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

after_success:

0 comments on commit 4c4da83

Please sign in to comment.
You can’t perform that action at this time.