Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
Improve travis settings backported from v4 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jul 15, 2015
1 parent 150f925 commit 1ae2c3c
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: php

sudo: false

php:
- 5.3
- 5.4
Expand All @@ -9,19 +11,31 @@ php:
- hhvm

matrix:
include:
- php: 5.3
env: COLLECT_COVERAGE=true
- php: 5.4
env: COLLECT_COVERAGE=true
- php: 5.5
env: COLLECT_COVERAGE=true
- php: 5.6
env: COLLECT_COVERAGE=true
- php: 7.0
- php: hhvm
allow_failures:
- php: 7.0
fast_finish: true

cache:
directories:
- $HOME/.composer/cache

install:
- travis_retry composer install
- travis_retry composer install --prefer-dist

script:
- phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [ "$TRAVIS_PHP_VERSION" == "5.3" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.4" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- wget https://scrutinizer-ci.com/ocular.phar
- if [ "$COLLECT_COVERAGE" == "true" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 comments on commit 1ae2c3c

Please sign in to comment.