Skip to content

Commit

Permalink
Fix xmllint error on phpunit.legacy.xml
Browse files Browse the repository at this point in the history
Copies the legacy config rather than moving it so that xmllint can scan
it, which was the last thing preventing the 7.x build from passing.

Since the config is always available under the same filename, we also no
longer need to pass a custom `--configuration` flag for phpunit.
  • Loading branch information
dshoreman committed Nov 5, 2020
1 parent e218692 commit bc39de1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,12 @@ install:
# different config infection uses for individual mutations
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]
&& [ ${TRAVIS_PHP_VERSION:2:1} -lt 4 ]; then
mv -v tests/phpunit.legacy.xml tests/phpunit.xml
cp -v tests/phpunit.legacy.xml tests/phpunit.xml
; fi

script:
- vendor/bin/grumphp run

- if [[ -z "$PHPUNIT_LEGACY" ]]; then composer test; else
vendor/bin/phpunit --testdox --color=always
--configuration tests/phpunit.legacy.xml
; fi
- composer test

- if [[ -z "$PHPUNIT_LEGACY" ]]; then composer infection; else
vendor/bin/infection --ansi --threads=4 --coverage=tests/test-results
Expand Down

0 comments on commit bc39de1

Please sign in to comment.