Skip to content

Commit 8c1b0d0

Browse files
committed
Optimize travis config
1 parent 54551c4 commit 8c1b0d0

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.travis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,20 @@ php:
77
- 7.0
88
- hhvm
99

10-
sudo: false
10+
matrix:
11+
fast_finish: true
12+
allow_failures:
13+
- php: 7.0
1114

15+
sudo: false
16+
1217
install:
1318
- travis_retry composer install --no-interaction --prefer-source
1419

15-
before_script:
16-
- curl -s http://getcomposer.org/installer | php
17-
- php composer.phar install --dev --no-interaction
18-
- wget https://scrutinizer-ci.com/ocular.phar
19-
- wget https://phar.phpunit.de/phpcov.phar
20-
2120
script:
22-
- mkdir -p tmp
23-
- vendor/bin/phpspec run -c phpspec.yml.dist
24-
- vendor/bin/phpunit --configuration phpunit.xml.dist
25-
21+
- if [ "$TRAVIS_PHP_VERSION" != "5.5.9" ] && [ "$TRAVIS_PHP_VERSION" != "5.5" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then vendor/bin/phpunit; vendor/bin/phpspec run; fi
22+
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
23+
2624
after_script:
27-
- php phpcov.phar merge --clover tmp/coverage.clover tmp
28-
- php ocular.phar code-coverage:upload --format=php-clover tmp/coverage.clover
25+
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
26+
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi

0 commit comments

Comments
 (0)