forked from influxdata/influxdb-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 957 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
23
24
25
26
27
28
29
30
31
32
33
34
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- CC_TEST_REPORTER_ID=303a289e61e8e11d8bcae115860c4fffc6e1e7fe2d504d20a773e69bd7641284
matrix:
fast_finish: true
include:
# - php: 5.5 is over EOL. phpunit does not support it anymore so we just ignore this version
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
before_install:
# setup code climate reporter https://docs.codeclimate.com/docs/configuring-test-coverage
- 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
install:
- composer update --prefer-dist --no-interaction
script:
- composer validate --strict --no-check-lock
- composer test-ci
after_script:
- ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT