Skip to content
Permalink
Browse files

Use composer scripts in .travis.yml

  • Loading branch information...
ADmad committed Jan 1, 2017
1 parent 98b70d1 commit 20ebb747e524951af1ff588d72a0918960ee13ab
Showing with 3 additions and 3 deletions.
  1. +3 −3 .travis.yml
@@ -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

0 comments on commit 20ebb74

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