Skip to content

Commit

Permalink
Only run Coveralls for PHP 5.6 per Matthieu Napoli's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
codeguy committed Jun 16, 2015
1 parent 009a3ff commit 79e2d9d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ php:
- 7.0
- hhvm

before_script: composer install
before_script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install -n ; fi

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then phpunit --coverage-clover clover.xml ; fi
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then phpunit ; fi

after_script:
- php vendor/bin/coveralls -v
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi

0 comments on commit 79e2d9d

Please sign in to comment.