forked from Ocramius/PackageVersions
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
48 lines (44 loc) · 1.13 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
language: php
dist: bionic
matrix:
include:
- php: 7.0
dist: xenial
env:
- DEPENDENCIES=""
- php: 7.0
dist: xenial
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.1
dist: xenial
env:
- DEPENDENCIES=""
- php: 7.2
dist: xenial
env:
- DEPENDENCIES=""
- php: 7.3
env:
- DEPENDENCIES=""
- php: 7.4
env:
- LOCKED_DEPENDENCIES=1
- php: 7.4
env:
- DEPENDENCIES=""
- php: 7.4
env:
- DEPENDENCIES="--classmap-authoritative"
- php: 7.4
env:
- DEPENDENCIES="--no-scripts"
before_script:
# aliasing current branch as `master`, since otherwise composer cannot determine the current branch-alias
- git branch -D master || true
- git checkout -b master
- if [[ $DEPENDENCIES = '--no-scripts' ]]; then composer self-update --2; else composer self-update; fi
- if [[ $LOCKED_DEPENDENCIES = '1' ]]; then composer install; fi
- if [[ $LOCKED_DEPENDENCIES = '' ]]; then composer update $DEPENDENCIES; fi
script:
- ./vendor/bin/phpunit --disallow-test-output