language: php

php:
 - "7.0"
 - "7.1"
 - "7.2"
 - "7.3"
 - "nightly"

before_script:
 - composer selfupdate
 - composer install

script:
 - ./vendor/bin/phpunit --configuration=phpunit.travis.xml

matrix:
 allow_failures:
  - php: nightly

addons:
 code_climate:
  repo_token:
   secure: "I3eTx9kL0G59wHo3pppEBlAt0eq3DkxgoTcF/6teFrNgQ2/Fn6Cx1Joh2FIIk9MTE1lERrM6nwNK6M58iYhLMJNE6svnDLnBIgt9eEQb0NCzyeDtMUQwiTDEVt/GA6RZvHoqEHbcp88H2AOHcMqGOEJZsOlDWbxMjmBKNBvAdWU="

after_script:
 - ./vendor/bin/test-reporter --stdout > codeclimate.json
 - 'curl -X POST -d @codeclimate.json -H "Content-Type: application/json" -H "User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)"  https://codeclimate.com/test_reports'
 - wget https://scrutinizer-ci.com/ocular.phar
 - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

language: php

php:
 - "7.0"
 - "7.1"
 - "7.2"
 - "7.3"
 - "nightly"

before_script:
 - composer selfupdate
 - composer install

script:
 - ./vendor/bin/phpunit --configuration=phpunit.travis.xml

matrix:
 allow_failures:
  - php: nightly
  - php: "7.0"
  - php: "7.1"

addons:
 code_climate:
  repo_token:
   secure: "I3eTx9kL0G59wHo3pppEBlAt0eq3DkxgoTcF/6teFrNgQ2/Fn6Cx1Joh2FIIk9MTE1lERrM6nwNK6M58iYhLMJNE6svnDLnBIgt9eEQb0NCzyeDtMUQwiTDEVt/GA6RZvHoqEHbcp88H2AOHcMqGOEJZsOlDWbxMjmBKNBvAdWU="

after_script:
 - ./vendor/bin/test-reporter --stdout > codeclimate.json
 - 'curl -X POST -d @codeclimate.json -H "Content-Type: application/json" -H "User-Agent: Code Climate (PHP Test Reporter v1.0.1-dev)"  https://codeclimate.com/test_reports'
 - wget https://scrutinizer-ci.com/ocular.phar
 - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

Remove support for PHP 7.0 and PHP 7.1
Remove support for PHP 7.0 and PHP 7.1

This is necessary due to the changed signature of the `setup`-function
in PHPUnit.

The library itself should still work on PHP7.0 and 7.1 but it will not
be tested in these two versions
