/
.travis.yml
64 lines (53 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
62
63
64
language: php
php:
- 7.2
- 7.3
sudo: false
addons:
apt:
packages:
- libxml2-utils
cache:
directories:
- $HOME/.composer/cache
env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
- SYMFONY_DEPRECATIONS_HELPER=max[self]=0
- TARGET=test
stages:
- lint
- test
matrix:
fast_finish: true
include:
- stage: lint
php: 7.3
env: TARGET=lint
- stage: lint
php: 7.3
env: TARGET=phpstan
- stage: lint
php: 7.3
env: TARGET=checkdeps
- stage: test
php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest"
- stage: test
php: 7.3
env: SYMFONY_VERSION=3.4.*
- stage: test
php: 7.3
env: SYMFONY_VERSION=4.2.*
allow_failures:
- php: 7.3
env: TARGET=checkdeps
before_install:
- wget "https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar" --output-document="${HOME}/bin/php-coveralls" && chmod u+x "${HOME}/bin/php-coveralls"
- gem install yaml-lint
install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
script: make $TARGET
after_success:
- php-coveralls -v