Skip to content

Commit 03fc022

Browse files
committed
Trying phpunit 5.7 for all tests.
1 parent 7929667 commit 03fc022

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ php:
88

99
matrix:
1010
allow_failures:
11+
# Requires phpunit 5.7 (3.7 works up to PHP 7.1)
1112
- php: 7.2
1213

1314
before_script:
1415
- composer install -n --dev --prefer-source
16+
- wget -O phpunit https://phar.phpunit.de/phpunit-5.phar
17+
- chmod +x phpunit
1518

16-
script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
19+
script:
20+
- vendor/bin/phpcs --standard=PSR2 src
21+
#- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
22+
- phpunit --coverage-text --coverage-clover=coverage.clover
1723

1824
after_script:
19-
- wget https://scrutinizer-ci.com/ocular.phar
20-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
25+
- wget https://scrutinizer-ci.com/ocular.phar
26+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
27+
28+
# TODO: For PHP7.2, get phpunit 5.7:
29+
# wget -O phpunit https://phar.phpunit.de/phpunit-5.phar
30+
# Set it for execute permission.

0 commit comments

Comments
 (0)