-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (63 loc) · 1.69 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
language: php
## Cache composer bits
cache:
directories:
- $HOME/.composer/cache/files
## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 7.0
env:
- qaExtended=true
- php: 7.1
- php: 7.2
env:
- dropPlatform=false
- php: nightly
env:
- dropPlatform=false
- php: 7.0
env:
- dependencies=lowest
- php: 7.1
env:
- dependencies=lowest
- php: 7.2
env:
- dependencies=lowest
- dropPlatform=false
- php: nightly
env:
- dependencies=lowest
- dropPlatform=false
- php: 7.0
env:
- dependencies=highest
- 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
- make generate-resources
- rm tests/Resource/* -Rfv
## Run the actual test
script:
- if [ -z "$qaExtended" ]; then make ci; fi;
- if [ "$qaExtended" = "true" ]; then make ci-extended; fi;
## Gather coverage and set it to coverage servers
after_script: if [ "$qaExtended" = "true" ]; then make ci-coverage; fi;