diff --git a/.travis.yml b/.travis.yml index abeba18..1783a32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,10 +25,14 @@ install: script: - vendor/bin/grumphp run - - vendor/bin/phpunit -c "tests/${PHPUNIT_CONFIG:-phpunit}.xml" --testdox --color=always - - echo "CMD: vendor/bin/phpunit -c tests/${PHPUNIT_CONFIG:-phpunit}.xml --testdox --color=always" - - vendor/bin/infection --test-framework-options="-c 'tests/${PHPUNIT_CONFIG}:-phpunit}.xml'" \ - --coverage-xml "tests/test-results" + - if [[ -z "$PHPUNIT_CONFIG" ]]; then composer test; else + vendor/bin/phpunit -c tests/phpunit.legacy.xml --testdox --color=always + ; fi + - if [[ -z "$PHPUNIT_CONFIG" ]]; then composer infection; else + vendor/bin/infection --coverage=tests/test-results + --test-framework-options="-c tests/phpunit.legacy.xml" + ; fi + - cat /tmp/infection/phpunitConfiguration.initial.infection.xml - composer psalm after_success: bash <(curl -s https://codecov.io/bash)