-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
56 lines (49 loc) · 1.12 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
language: php
cache:
directories:
- $HOME/.composer/cache
- vendor
env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
matrix:
fast_finish: true
include:
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- DEPS=latest
- php: 7.0
env:
- DEPS=lowest
- php: 7.0
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=latest
allow_failures:
- php: 7.2
before_install:
- travis_retry composer self-update
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
- travis_retry composer install $COMPOSER_ARGS
- composer show
- wget https://scrutinizer-ci.com/ocular.phar
script:
- (cd tests ; ../vendor/bin/phpunit ./)
after_script:
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml