forked from luyadev/luya-mailjet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (22 loc) · 798 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
env:
global:
- CC_TEST_REPORTER_ID=7390f2da2caa279a5aa7c0580275d37cec8afaac8d543897b57bfb96030c3df0
language: php
php:
- 7.1
- 7.2
- 7.3
- nightly
matrix:
allow_failures:
- php: nightly
before_script:
- if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
- 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:
- composer install --prefer-dist --no-interaction
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS --configuration travis.phpunit.xml
after_script:
- if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi