-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (30 loc) · 720 Bytes
/
.travis.yml
File metadata and controls
40 lines (30 loc) · 720 Bytes
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
language: php
sudo: false
php:
- 7.2
- 7.3
matrix:
fast_finish: true
env:
matrix:
- DEPENDENCIES="high"
- DEPENDENCIES="low"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
git:
depth: 3
before_install:
- pecl install ds
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
before_script:
- phpenv config-rm xdebug.ini
script:
- cp .env.test .env
- phpunit
- bin/phpcheck
cache:
directories:
- $HOME/.cache/composer/files
- $HOME/.composer/cache/files