-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (38 loc) · 1.17 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
sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
matrix:
allow_failures:
- php: nightly
fast_finish: true
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
install:
- composer update -n --prefer-dist
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.0/coveralls.phar
- chmod +x coveralls.phar
- mkdir -p coverage/cov coverage/bin
- wget https://phar.phpunit.de/phpcov.phar -O coverage/bin/phpcov
- chmod +x coverage/bin/phpcov
- composer show
- cd test/tls && ./regenerate.sh && cd -
script:
# PHPDBG segfaults on versions other than 7.0 currently
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then
phpdbg -qrr vendor/bin/phpunit --verbose --coverage-php coverage/cov/main.cov;
else
vendor/bin/phpunit --coverage-text --verbose --coverage-php coverage/cov/main.cov;
fi
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
after_script:
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then
coverage/bin/phpcov merge --clover build/logs/clover.xml coverage/cov
./coveralls.phar -v;
fi
cache:
directories:
- $HOME/.composer/cache/files