Skip to content

Commit

Permalink
nearly there then, let the cleanup begin
Browse files Browse the repository at this point in the history
  • Loading branch information
dshoreman committed Nov 1, 2020
1 parent bc29ded commit 51faf08
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,32 @@ cache:

install:
- travis_retry composer install $COMPOSER_OPTS

# PHPUnit 9 supports 7.3, but Infection PHP 18 can't read
# its config so instead we downgrade to PHPUnit 8.5 here.
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then
travis_retry composer require -W phpunit/phpunit:^8.5
; fi
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]] && [ ${TRAVIS_PHP_VERSION:2:1} -lt 4 ]; then

# May not need this? Now that it seems to be working, see if
# the --test-framework-options="-c tests/phpunit.legacy.xml"
# method will work or if its still broken because of the
# different config infection uses for individual mutations
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]
&& [ ${TRAVIS_PHP_VERSION:2:1} -lt 4 ]; then
cp -v tests/phpunit.legacy.xml tests/phpunit.xml
; fi

script:
- vendor/bin/grumphp run
- composer test
- composer infection

- if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
vendor/bin/infection --ansi --threads=4
--initial-tests-php-options="-d xdebug.mode=coverage"
--only-covered --min-msi=100 --min-covered-msi=100;
else composer infection; fi

- composer psalm

after_success: bash <(curl -s https://codecov.io/bash)

0 comments on commit 51faf08

Please sign in to comment.