This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (78 loc) · 2.21 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.0
- 7.1.18
- 7.2
- nightly
env:
global:
- MAINTAINED_SYMFONY_VERSIONS="2.8.*|3.4.*|4.0.*|4.1.*|4.2.*"
matrix:
- SYMFONY_VERSION="2.7.*"
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.0.*"
- SYMFONY_VERSION="3.1.*"
- SYMFONY_VERSION="3.2.*"
- SYMFONY_VERSION="3.3.*"
- SYMFONY_VERSION="3.4.*"
- SYMFONY_VERSION="4.0.*"
- SYMFONY_VERSION="4.1.*"
- SYMFONY_VERSION="4.2.*"
- DEPENDENCIES="beta"
matrix:
fast_finish: true
exclude:
- php: 7.0
env: SYMFONY_VERSION="4.0.*"
- php: 7.0
env: SYMFONY_VERSION="4.1.*"
- php: 7.0
env: SYMFONY_VERSION="4.2.*"
- php: 7.0
env: DEPENDENCIES="beta"
allow_failures:
- php: nightly
- env: DEPENDENCIES="beta"
before_install:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [ -n "$GH_TOKEN" ]; then
composer config github-oauth.github.com ${GH_TOKEN};
fi;
- mkdir -p build/logs
install:
- if [ "$DEPENDENCIES" = "beta" ]; then
composer config minimum-stability beta;
fi;
- if [ "$SYMFONY_VERSION" != "4.2.*" ]; then
composer remove friendsofphp/php-cs-fixer --dev;
fi
- if [ "$SYMFONY_VERSION" != "" ]; then
composer remove symfony/symfony --dev &&
composer require symfony/symfony:"${SYMFONY_VERSION}" --dev --no-update;
fi
- composer update -n --prefer-dist
script:
- if [ "$SYMFONY_VERSION" != "4.2.*" ]; then
echo "File validation is skipped for older symfony versions";
else
composer validate-files;
fi;
- if [ "$SYMFONY_VERSION" != "4.2.*" ]; then
echo "Code style check is skipped for older symfony versions";
else
composer check-code-style;
fi;
- if [ "$MAINTAINED_SYMFONY_VERSIONS" != *"$SYMFONY_VERSION"* ]; then
echo "Security check is skipped as Symfony $SYMFONY_VERSION is not actively maintained";
elif [ "$(phpenv version-name)" = 7.0 ]; then
echo "Security check is skipped due to security-checker issue 100";
else
composer check-security;
fi;
- composer run-tests-with-clover
after_script:
- php bin/coveralls -v