forked from luyadev/luya-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
19 lines (19 loc) · 789 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
env:
global:
- CC_TEST_REPORTER_ID=71fa82448429f216b6539c5cc8337e4bdce920d868f1560cb0e5d39ec054d4bd
language: php
php:
- 7.0
- 7.1
- 7.2
- 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-source --no-interaction --ignore-platform-reqs --no-scripts
- 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