-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (57 loc) · 1.68 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
## Cache composer bits
cache:
directories:
- $HOME/.composer/cache/files
## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 7.1
env:
- qaExtended=true
- php: 7.2
env:
- dropPlatform=false
- php: nightly
env:
- dropPlatform=false
- php: 7.1
env:
- dependencies=lowest
- php: 7.2
env:
- dependencies=lowest
- dropPlatform=false
- php: nightly
env:
- dependencies=lowest
- dropPlatform=false
- php: 7.1
env:
- dependencies=highest
- php: 7.2
env:
- dependencies=highest
- dropPlatform=false
- php: nightly
env:
- dependencies=highest
- dropPlatform=false
## Install or update dependencies
install:
- composer validate
- if [ -z "$dropPlatform" ]; then composer config --unset platform.php; fi;
- if [ -z "$qaExtended" ]; then phpenv config-rm xdebug.ini || :; fi;
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
- composer show
## Run the actual test
script:
- if [ -z "$qaExtended" ]; then make ci || true; fi;
- if [ "$qaExtended" = "true" ]; then make ci-extended || true; fi;
- pecl install msgpack
- if [ -z "$qaExtended" ]; then make ci || true; fi;
- if [ "$qaExtended" = "true" ]; then make ci-extended || true; fi;
## Gather coverage and set it to coverage servers
after_script: if [ "$qaExtended" = "true" ]; then make ci-coverage; fi;