|
|
@@ -75,10 +75,10 @@ before_script:
|
|
|
- composer install --prefer-dist --no-interaction
|
|
|
|
|
|
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 [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then export CODECOVERAGE=1; composer test-coverage; fi
|
|
|
+ - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then composer test; fi
|
|
|
|
|
|
- - if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
|
|
|
+ - if [[ $PHPCS = 1 ]]; then composer cs-check; fi
|
|
|
|
|
|
after_success:
|
|
|
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
|