-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (51 loc) · 1.24 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
language: php
os: linux
php:
- 7.3
- 7.4
- master
env:
- DEPS="LOW"
- DEPS="NORMAL"
addons:
apt:
packages:
- acl
- python-docutils
cache:
directories:
- $HOME/.composer/cache
- build/cache
stages:
- composer validate
- test
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- phpenv rehash
- set -e
- composer self-update
- composer global require hirak/prestissimo
install:
- |
if [[ "$DEPS" == "LOW" ]]; then
composer install --prefer-dist --no-progress --no-interaction --no-suggest;
composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest --prefer-lowest;
else
composer install --optimize-autoloader --prefer-dist --no-progress --no-interaction --no-suggest;
fi
script:
- vendor/bin/phpunit
jobs:
allow_failures:
- php: 7.4
- php: master
- php: nightly
include:
- php: nightly
env: DEPS="IGNORE"
install: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest --ignore-platform-reqs
- stage: composer validate
php: 7.3
env: DEPS="NORMAL"
script:
- composer validate