-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (63 loc) · 1.62 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: php
matrix:
include:
- php: 5.4
dist: trusty
env: PUG_VERSION='^2.7'
- php: 5.5
dist: trusty
env: PUG_VERSION='^2.7'
- php: 5.5
dist: trusty
env: PUG_VERSION='^3.0'
- php: 5.6
env: PUG_VERSION='^2.7'
- php: 5.6
env: PUG_VERSION='^3.0'
- php: 7.0
env: PUG_VERSION='^2.7'
- php: 7.0
env: PUG_VERSION='^3.0'
- php: 7.1
env: PUG_VERSION='^2.7'
- php: 7.1
env: PUG_VERSION='^3.0'
- php: 7.2
env: PUG_VERSION='^2.7'
- php: 7.2
env: PUG_VERSION='^3.0'
- php: 7.3
env: PUG_VERSION='^2.7'
- php: 7.3
env: PUG_VERSION='^3.0'
- php: 7.4
env: PUG_VERSION='^2.7'
- php: 7.4
env:
- PUG_VERSION='^3.0'
- COVERAGE_ENABLED=true
- php: 8.0
env: PUG_VERSION='^2.7'
- php: 8.0
env: PUG_VERSION='^3.0'
before_script:
- travis_retry composer self-update
- if [ "$PUG_VERSION" != "" ]; then travis_retry composer require "pug-php/pug:${PUG_VERSION}" --no-update; fi;
- travis_retry composer update --no-interaction
script:
- if [ "$COVERAGE_ENABLED" == "true" ]; then
vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml;
else
vendor/bin/phpunit --verbose;
fi;
after_script:
- if [ "$COVERAGE_ENABLED" == "true" ]; then
vendor/bin/test-reporter --coverage-report coverage.xml;
fi;
after_success:
- if [ "$COVERAGE_ENABLED" == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi;
addons:
code_climate:
repo_token: 25328431329b40920e6ddb0ef51ec0bb863500568db2467e9abcff726347e29e