-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
53 lines (45 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
50
51
52
53
language: php
# Run on container environment (needed for trais caching feature)
sudo: false
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.5
env: DEPENDENCIES='low'
- php: 5.6
- php: 7.0
- php: 7.0
env: DEPENDENCIES='low'
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: hhvm-3.24
allow_failures:
- php: 5.5
- php: 5.5
env: DEPENDENCIES='low'
- php: 5.6
- php: 7.0
- php: 7.0
env: DEPENDENCIES='low'
- php: hhvm-3.24
- php: 7.4
dist: trusty
# Cache composer files for faster test times
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- composer self-update
- composer require satooshi/php-coveralls
- composer install
- echo 'xdebug.mode = "coverage"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- if [ -z "$DEPENDENCIES" ]; then composer install --no-interaction --prefer-dist; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer update --no-interaction --prefer-dist --prefer-lowest; fi;
script: vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml
after_script:
- php vendor/bin/php-coveralls -v