-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
20 lines (20 loc) · 807 Bytes
/
.travis.yml
File metadata and controls
20 lines (20 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
env:
global:
- CC_TEST_REPORTER_ID=61db7678b47797ad0226a1d838256b00b884e5f4195adc78b1d2450450ee5aba
language: php
php:
- 7.0
- 7.1
before_script:
- composer self-update -q
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; 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:
- stty cols 80; vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
- vendor/bin/phpcs src/ --standard=psr2 -sp
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi;