-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (55 loc) · 1.4 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
sudo: false
## Cache composer bits
cache:
directories:
- $HOME/.composer/cache
## PHP versions we test against
php:
- 7.2
- 7.3
- nightly
## Environment variables
env:
- coverage=true
## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 7.2
env:
- dependencies=lowest
- coverage=false
- php: 7.3
env:
- dependencies=lowest
- coverage=false
- php: nightly
env:
- dependencies=lowest
- coverage=false
- php: 7.2
env:
- dependencies=highest
- coverage=false
- php: 7.3
env:
- dependencies=highest
- coverage=false
- php: nightly
env:
- dependencies=highest
- coverage=false
## Install or update dependencies
install:
- composer validate
- if [ "$coverage" = "false" ]; 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 [ "$coverage" = "false" ]; then make ci; fi;
- if [ "$coverage" = "true" ]; then make ci-with-coverage; fi;
## Gather coverage and set it to coverage servers
after_script: make ci-coverage