.travis.yml
env:
global:
- CC_TEST_REPORTER_ID=529e60e24df4d0d72b61d8efca05d763f626539eadc2d8154218c7c3af73b662
language: php
php:
- 8.1
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 self-update
- composer install --dev
script:
- vendor/bin/robo test:coverage-codeclimate
after_script:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi