.travis.yml
language: php
os: linux
dist: trusty
php:
- 5.5
- 5.6
env:
global:
- CC_TEST_REPORTER_ID=7e481f66096018d5f86ba05bbafde0b081ec0fb0be4bc0533b0db7076aff35a9
- 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)
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
- composer install --no-interaction --ignore-platform-reqs
script:
- vendor/bin/phpunit --coverage-clover clover.xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT