-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (39 loc) · 1.06 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
git:
depth: 1
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
matrix:
fast_finish: true
env:
matrix:
- DEPENDENCIES="high"
- DEPENDENCIES="low"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --no-suggest --prefer-dist"
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini || return 0;
- composer self-update
install:
- if [[ "$DEPENDENCIES" = 'high' ]]; then
travis_retry composer update $DEFAULT_COMPOSER_FLAGS;
fi
- if [[ "$DEPENDENCIES" = 'low' ]]; then
travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest;
fi
- if [[ "$DEPENDENCIES" = 'high' ]] && [[ "$TRAVIS_PHP_VERSION" = '7.2' ]]; then
travis_retry composer bin all install -a --no-dev;
fi
before_script:
- composer install --prefer-source --no-interaction
script:
- if [[ "$DEPENDENCIES" = 'high' ]] && [[ "$TRAVIS_PHP_VERSION" = '7.2' ]]; then
composer app:checks;
fi
- vendor/bin/phpunit