Skip to content

Commit

Permalink
Travis: Use coverage only for PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
romeOz committed Dec 13, 2016
1 parent a1e10b6 commit 700d609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ install:
- docker exec -it rock_cache bash -c 'composer --version && exit $?'
- travis_retry docker exec -it rock_cache bash -c 'composer install --prefer-dist && exit $?'
- |
if [[ $TAG = '5.5-full' ]]; then
if [[ $TAG = '5.6-full' ]]; then
travis_retry docker exec -it rock_cache bash -c 'apt-get update && apt-get install -y git'
travis_retry docker exec -it rock_cache bash -c 'composer require satooshi/php-coveralls:^1.0 && mkdir -p build/logs'
fi
script:
- |
if [[ $TAG = '5.5-full' ]]; then
if [[ $TAG = '5.6-full' ]]; then
PHPUNIT_FLAGS="--coverage-clover=build/logs/clover.xml"
fi
- travis_retry docker exec -it rock_cache bash -c 'vendor/bin/phpunit --verbose $PHPUNIT_FLAGS --exclude-group hhvm || exit 0'

after_script:
- |
if [[ $TAG = '5.5-full' ]]; then
if [[ $TAG = '5.6-full' ]]; then
travis_retry docker exec -it rock_cache bash -c 'vendor/bin/coveralls -v && exit $?'
fi

0 comments on commit 700d609

Please sign in to comment.