Optimized travis CI tests

* Speed up tests by testing coverage only on php 5.6
* Add php nightly because composer accept it
* Add composer cache dir to travis cache
This commit is contained in:
Jeremiah VALERIE 2016-11-12 10:09:19 +01:00
parent 986eff9bff
commit 4e6b052465

View File

@ -7,14 +7,23 @@ php:
- 7.0 - 7.0
- 7.1 - 7.1
- hhvm - hhvm
- nightly
allow_failures:
- php: nightly
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi
- composer selfupdate
install: install:
- composer install --dev --prefer-dist - composer install --dev --prefer-dist
script: script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover build/logs/clover.xml; else phpunit; fi
- mkdir -p build/logs
- bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_success: after_success:
- composer require "satooshi/php-coveralls:^1.0" - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi
- travis_retry php bin/coveralls -v