Skip to content

Commit

Permalink
Merge pull request #73 from mcg-web/optimized-travis-ci-tests
Browse files Browse the repository at this point in the history
Optimized travis CI tests
  • Loading branch information
vladar committed Nov 12, 2016
2 parents 936af26 + 4e6b052 commit 1ee29e3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@ php:
- 7.0
- 7.1
- hhvm
- nightly

allow_failures:
- php: nightly

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

before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi
- composer selfupdate

install:
- composer install --dev --prefer-dist

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

after_success:
- composer require "satooshi/php-coveralls:^1.0"
- travis_retry php bin/coveralls -v
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi

0 comments on commit 1ee29e3

Please sign in to comment.