.travis.yml
language: "php"
php:
- 7.2
- 7.3
- 7.4
before_script:
- "composer require codeclimate/php-test-reporter --dev"
- "composer install"
script:
- "./vendor/bin/phpunit --testsuite=unit --coverage-text --coverage-clover build/logs/clover.xml"
after_script:
- CODECLIMATE_REPO_TOKEN="0e043fdece23b7c9b6fabd55ce12cb93ae81376b4fb2fe574ff47444111ff039" vendor/bin/test-reporter --stdout > codeclimate.json
- "sh -c 'if [ \"$TRAVIS_PHP_VERSION\" != \"hhvm\" ]; then curl -X POST -d @codeclimate.json -H \"Content-Type: application/json\" -H \"User-Agent: Code Climate (PHP Test Reporter v0.1.1)\" https://codeclimate.com/test_reports ; fi'"