language: php
php:
    - 7.2
    - 7.3
    - '7.4snapshot'
    - nightly
matrix:
    allow_failures:
        - php: nightly
before_script: composer install
script:
  - vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-xml=build/coverage/coverage-xml --log-junit=build/coverage/phpunit.junit.xml
  - if [ "$TRAVIS_PHP_VERSION" != "nightly" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then vendor/bin/infection -s --only-covered --min-msi=95 --coverage=build/coverage; fi
after_script:
    - if [ "$TRAVIS_PHP_VERSION" != "nighlty" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
    - if [ "$TRAVIS_PHP_VERSION" != "nighlty" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

language: php
php:
    - 7.2
    - 7.3
    - '7.4snapshot'
    - nightly
matrix:
    allow_failures:
        - php: nightly
before_script: composer install
script:
  - vendor/bin/phpunit --coverage-clover=coverage.clover
  - if [ "$TRAVIS_PHP_VERSION" != "nightly" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then vendor/bin/infection -s --only-covered --min-msi=95; fi
after_script:
    - if [ "$TRAVIS_PHP_VERSION" != "nighlty" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
    - if [ "$TRAVIS_PHP_VERSION" != "nighlty" ] && [ "$TRAVIS_PHP_VERSION" != "7.4snapshot" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

Revert "use coverage files to avoid infection re-running tests"
Revert "use coverage files to avoid infection re-running tests"

This reverts commit a29165e27aa890f5602875aa8ff53de7c562e827.
