.travis.yml
env:
global:
- CC_TEST_REPORTER_ID=6255786a39faec386baaedfa02d9fa7654d6fba246737554620c3226ea906d60
language: php
php:
- '7.1'
- '7.2'
- '7.3'
- hhvm # on Trusty only
- nightly
matrix:
allow_failures:
- php: nightly
- php: hhvm
before_script:
- if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
script:
- composer install --prefer-dist --no-interaction
- vendor/bin/phpunit tests/ $PHPUNIT_FLAGS --configuration travis.phpunit.xml
after_script:
- if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi