File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 7
7
- 7.0
8
8
- hhvm
9
9
10
- sudo : false
10
+ matrix :
11
+ fast_finish : true
12
+ allow_failures :
13
+ - php : 7.0
11
14
15
+ sudo : false
16
+
12
17
install :
13
18
- travis_retry composer install --no-interaction --prefer-source
14
19
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
-
21
20
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
+
26
24
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
You can’t perform that action at this time.
0 commit comments