Skip to content

Commit

Permalink
travis: phpdbg added to allow_failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 9, 2017
1 parent b598119 commit 3fb5d4a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 3fb5d4a

Please sign in to comment.