forked from FriendsOfSymfony/FOSCKEditorBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (53 loc) · 1.8 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
65
66
67
language: php
sudo: false
cache:
pip: true
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
- TARGET=test
matrix:
fast_finish: true
include:
# Minimum supported dependencies with the oldest supported PHP version
- php: 7.1
env:
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
- SYMFONY_PHPUNIT_VERSION="5.7.26"
# Coverage
- php: 7.1
env:
- PHPUNIT_FLAGS="-v --coverage-clover build/logs/clover.xml"
- SYMFONY_PHPUNIT_VERSION="6.5"
- COVERAGE=true
# Test LTS version. This makes sure we do not use Symfony packages with version greater
# than 3. Read more at https://github.com/symfony/lts
- php: 7.1
env: DEPENDENCIES="symfony/lts:^3"
#doc
- php: 7.2
env: TARGET=docs
- php: 7.2
env:
- STABILITY="dev"
- SYMFONY_PHPUNIT_VERSION="6.5"
- php: 7.1
env: TARGET=phpstan LEVEL=7
- php: '7.2'
env: PHPUNIT_FLAGS="--group=proxy"
allow_failures:
- env: PHPUNIT_FLAGS="--group=proxy"
- env: TARGET=phpstan LEVEL=7
before_install:
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
install:
- if [ -x .travis/install_${TARGET}.sh ]; then .travis/install_${TARGET}.sh; fi;
script:
- if [ -x .travis/script_${TARGET}.sh ]; then .travis/script_${TARGET}.sh; fi;
after_success: .travis/success.sh