Fix HHVM jobs on Travis

This commit is contained in:
Adrien Loison 2017-07-25 10:28:55 +02:00
parent 40b4a57e6b
commit 406d7a6471
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@ filter:
tools:
external_code_coverage:
timeout: 600 # Wait 10 minutes for results
runs: 3 # Merge results for 5.4, 5.5 and 5.6 jobs
runs: 1 # Results are only coming from the PHP 7.1 job
php_mess_detector: true
php_code_sniffer:
config:

View File

@ -7,6 +7,7 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm-3.6
cache:
@ -21,5 +22,8 @@ script:
- php vendor/bin/phpunit --coverage-clover=build/logs/coverage.clover
after_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm-3.6' && $TRAVIS_PHP_VERSION != '7.0' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $TRAVIS_PHP_VERSION != 'hhvm-3.6' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.clover; fi
- |
if [[ "$TRAVIS_PHP_VERSION" == '7.1' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.clover
fi