Skip to content

Commit f3f6fc9

Browse files
committed
Fix CI on Travis
No support for PHP 7.2 (travis)
1 parent cabf9d7 commit f3f6fc9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.2
54
- 7.3
65
- 7.4
76
- nightly
@@ -30,15 +29,14 @@ install:
3029

3130
before_script: |
3231
if (php -m | grep -q -i xdebug); then
33-
export PHPUNIT_FLAGS="--coverage-clover cache/logs/clover.xml"
32+
export COVERAGE_FLAGS="--coverage --coverage-xml"
3433
else
35-
export PHPUNIT_FLAGS="--no-coverage"
34+
export COVERAGE_FLAGS=""
3635
fi
3736
3837
script:
39-
- vendor/bin/phpunit $PHPUNIT_FLAGS
38+
- vendor/bin/codecept run $COVERAGE_FLAGS
4039

4140
after_script:
42-
- test "$PHPUNIT_FLAGS" == "--no-coverage" || vendor/bin/infection --only-covered --no-progress --no-interaction --threads=4
43-
- test "$PHPUNIT_FLAGS" == "--no-coverage" || php "$HOME/ocular.phar" code-coverage:upload --format=php-clover cache/logs/clover.xml
41+
- test "$COVERAGE_FLAGS" == "" || php "$HOME/ocular.phar" code-coverage:upload --format=php-clover tests/_output/coverage.xml
4442

0 commit comments

Comments
 (0)