Skip to content

Commit

Permalink
Only run coverage on PHP 5.6 + PHP 7.2
Browse files Browse the repository at this point in the history
Fixes #251
  • Loading branch information
giggsey committed May 29, 2018
1 parent a91767e commit e6c0da8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Expand Up @@ -2,20 +2,29 @@ sudo: false

language: php

env:
global:
- COVERAGE_FLAGS=" --coverage-text --coverage-clover build/logs/clover.xml"

matrix:
fast_finish: true
include:
# Need to use Precise for PHP 5.3
- php: 5.3
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE_FLAGS=""
dist: precise
- php: 5.4
env: COVERAGE_FLAGS=""
- php: 5.5
env: COVERAGE_FLAGS=""
- php: 5.6
- php: 7.0
env: COVERAGE_FLAGS=""
- php: 7.1
env: COVERAGE_FLAGS=""
- php: 7.2
- php: hhvm
env: COVERAGE_FLAGS=""

before_install:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
Expand All @@ -26,7 +35,7 @@ install:

script:
- composer validate --strict
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- ./vendor/bin/phpunit $COVERAGE_FLAGS

after_success:
- "[[ -f vendor/bin/php-coveralls ]] && COVERALLS_PATH=vendor/bin/php-coveralls || COVERALLS_PATH=vendor/bin/coveralls"
Expand Down

0 comments on commit e6c0da8

Please sign in to comment.