Skip to content

Commit

Permalink
add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Jun 8, 2020
1 parent 35ffca3 commit 2b35b31
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php
os:
- linux
php:
- 7.0
- 7.1
- 7.2
env:
global:
- CC_TEST_REPORTER_ID=7d2bdc40009fe4e288cff46f8238fbf801e878f8334580f0a0fe044eda0fd264
- 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
script:
- vendor/bin/phpunit --coverage-clover clover.xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit 2b35b31

Please sign in to comment.