.travis.yml
env:
global:
- CC_TEST_REPORTER_ID=0158f7abae79c2ca766a90676ff37d81a7066f1da00f4f5b687a6e8b9ee8c038
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
cache:
directories:
- $HOME/.composer/cache/files
language: php
php:
- '7.2'
- '7.3'
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
install:
- composer install
after_script:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "${TRAVIS_PHP_VERSION:0:3}" == "7.2" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi