Skip to content

Commit

Permalink
Fix CI on Travis
Browse files Browse the repository at this point in the history
No support for PHP 7.2 (travis)
  • Loading branch information
jasny committed Oct 5, 2020
1 parent cabf9d7 commit f3f6fc9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.2
- 7.3
- 7.4
- nightly
Expand Down Expand Up @@ -30,15 +29,14 @@ install:

before_script: |
if (php -m | grep -q -i xdebug); then
export PHPUNIT_FLAGS="--coverage-clover cache/logs/clover.xml"
export COVERAGE_FLAGS="--coverage --coverage-xml"
else
export PHPUNIT_FLAGS="--no-coverage"
export COVERAGE_FLAGS=""
fi
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- vendor/bin/codecept run $COVERAGE_FLAGS

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

0 comments on commit f3f6fc9

Please sign in to comment.