graphql-php/.travis.yml
Jeremiah VALERIE 4e6b052465 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
2016-11-12 10:23:06 +01:00

30 lines
684 B
YAML

language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 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:
- composer install --dev --prefer-dist
script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover build/logs/clover.xml; else phpunit; fi
after_success:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi