-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (35 loc) · 933 Bytes
/
.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
language: php
sudo: false
git:
depth: 1
cache:
directories:
- $HOME/.composer/cache
php:
- '7.1'
- '7.2'
- '7.3'
- master
matrix:
fast_finish: true
allow_failures:
- php: master
env:
matrix:
- DEPENDENCIES="highest"
- DEPENDENCIES="lowest"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest --no-scripts --optimize-autoloader --classmap-authoritative"
#before_install:
# - composer clear-cache
install:
- if [[ "$DEPENDENCIES" = 'highest' ]]; then composer update $DEFAULT_COMPOSER_FLAGS; fi
- if [[ "$DEPENDENCIES" = 'lowest' ]]; then composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
before_script:
- if php --ri xdebug >/dev/null; then phpenv config-rm xdebug.ini; fi
script:
- composer cs-check
- composer code-analyse
- phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml
notifications:
email: false