-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
62 lines (49 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
env:
- PHP_BIN=php
- PHP_BIN=php-cgi
before_script:
# Prefer IPv4 and use Cloudflare DNS by default, otherwise build could fail with timeouts.
# https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-
- sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" && sudo printf "nameserver 1.0.0.1\nnameserver 1.1.0.0\n" /etc/resolvconf/resolv.conf.d/base && sudo resolvconf -u
- phpenv config-rm xdebug.ini || return 0
- travis_retry composer self-update
install:
- travis_retry composer install --no-interaction --no-progress --prefer-dist
script:
- ./vendor/bin/nunjuck -p $PHP_BIN -s -c ./tests/php.ini ./tests
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
jobs:
include:
- stage: Code Sniffer
php: 7.3
script:
- composer cs
- stage: Static Analysis
php: 7.3
script:
- composer phpstan
- stage: Code Coverage
php: 7.3
script:
- composer coverage
after_script:
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- php coveralls.phar --verbose --config tests/.coveralls.yml
allow_failures:
- stage: Static Analysis
- stage: Code Coverage
- php: 7.4
- php: nightly
cache:
directories:
- "$HOME/.composer/cache"
notifications:
email: false