Skip to content

Commit ba897a6

Browse files
committed
Require the correct version of phpunit depending on the PHP version.
1 parent d57fcd3 commit ba897a6

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ branches:
1515
- upstream
1616

1717
install:
18-
- composer install
18+
- composer self-update
19+
- composer install -o
20+
- |
21+
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
22+
composer require "phpunit/phpunit=5.7.*"
23+
else
24+
composer require "phpunit/phpunit=4.8.*"
25+
fi
1926
20-
script: phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
27+
script: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
2128

2229
after_script:
2330
- wget https://scrutinizer-ci.com/ocular.phar

0 commit comments

Comments
 (0)