Skip to content

Commit

Permalink
Updated .travis.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
markheydon committed Apr 21, 2020
1 parent c455a64 commit 5f34cf1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
global:
- CC_TEST_REPORTER_ID=200e7e42fffffffffff
- 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)

language: php

sudo: false

php:
- 7.3
- 7.4

cache:
directories:
- $HOME/.composer/cache

before_script:
- composer update --prefer-source --no-interaction --dev
- 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

script:
- "vendor/bin/phpcs"
- mkdir -p build/logs
- "vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml"
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

0 comments on commit 5f34cf1

Please sign in to comment.