-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·80 lines (70 loc) · 2.06 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
sudo: false
dist: trusty
language: php
cache:
directories:
- $HOME/.composer/cache
- vendor
env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
matrix:
fast_finish: true
include:
- php: 7.0
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- php: 7.2
env:
- DEPS=latest
- EXECUTE_TEST_COVERALLS=true
- php: hhvm
env:
- DEPS=lowest
- HHVMPHP7="yes"
- php: hhvm
env:
- DEPS=locked
- HHVMPHP7="yes"
- php: hhvm
env:
- DEPS=latest
- HHVMPHP7="yes"
allow_failures:
- php: hhvm
notifications:
email: true
before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- travis_retry composer self-update
- travis_retry composer clear-cache
install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'locked' ]]; then travis_retry composer install $COMPOSER_ARGS ; fi
- composer show
before_script:
- mkdir -p build/logs
- if [[ $HHVMPHP7 == "yes" ]]; then printf "hhvm.php7.all=1\nhhvm.jit=0\n" >> /etc/hhvm/php.ini; fi
script:
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit -v --debug --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit -v --debug ; fi
after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/php-coveralls ; fi