diff --git a/.travis.yml b/.travis.yml index 97c5a097d..d1d764e13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,10 +13,14 @@ matrix: - php: 5.6 env: dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php - php: 7.0 - env: coverage="--coverage ./coverage.xml --coverage-src ./src" PHP_BIN=phpdbg + env: coverage=on + + allow_failures: + - php: 7.0 + env: coverage=on script: - - vendor/bin/tester -p $PHP_BIN tests -s $coverage + - vendor/bin/tester -p $PHP_BIN tests -s $coverageArgs - php temp/code-checker/src/code-checker.php --short-arrays after_failure: @@ -27,11 +31,12 @@ before_script: # Install Nette Tester & Code Checker - travis_retry composer update --no-interaction --prefer-dist $dependencies - travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction + - if [ "$coverage" == "on" ]; then PHP_BIN=phpdbg; coverageArgs="--coverage ./coverage.xml --coverage-src ./src"; fi after_script: # Report Code Coverage - > - if [ "$coverage" != "" ]; then + if [ "$coverage" == "on" ]; then wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose --config tests/.coveralls.yml || true; fi