.travis.yml
language: php
php: 7.2
env:
- COMPOSER_NO_INTERACTION=1
install:
- travis_retry composer install
- |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
before_script:
- composer lint
- ./cc-test-reporter before-build
script:
- composer test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.composer/cache