-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
121 lines (112 loc) · 3.61 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: php
# Allows using containers
sudo: false
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache
# Base versions to test raw with the Symfony latest version.
php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
# The Symfony version implies that you require the full framework, not single components
# Requiring single components is much harder to do... And probably not flexible enough, even if it's lighter.
env:
global:
- SYMFONY_VERSION=""
# Heavy matrix to test every version of the bundle/package
matrix:
# Fast finish allows to set the build as "finished" even if the "allow_failures" matrix elements are not finished yet.
fast_finish: true
include:
# @see https://symfony.com/roadmap
- php: "7.1"
env: SYMFONY_VERSION="3.4.x"
- php: "7.2"
env: SYMFONY_VERSION="3.4.x"
- php: "7.3"
env: SYMFONY_VERSION="3.4.x"
- php: "7.4"
env: SYMFONY_VERSION="3.4.x"
- php: "7.1"
env: SYMFONY_VERSION="4.0.x"
- php: "7.2"
env: SYMFONY_VERSION="4.0.x"
- php: "7.3"
env: SYMFONY_VERSION="4.0.x"
- php: "7.4"
env: SYMFONY_VERSION="4.0.x"
- php: "7.1"
env: SYMFONY_VERSION="4.1.x"
- php: "7.2"
env: SYMFONY_VERSION="4.1.x"
- php: "7.3"
env: SYMFONY_VERSION="4.1.x"
- php: "7.4"
env: SYMFONY_VERSION="4.1.x"
- php: "7.1"
env: SYMFONY_VERSION="4.2.x"
- php: "7.2"
env: SYMFONY_VERSION="4.2.x"
- php: "7.3"
env: SYMFONY_VERSION="4.2.x"
- php: "7.4"
env: SYMFONY_VERSION="4.2.x"
- php: "7.1"
env: SYMFONY_VERSION="4.3.x"
- php: "7.2"
env: SYMFONY_VERSION="4.3.x"
- php: "7.3"
env: SYMFONY_VERSION="4.3.x"
- php: "7.4"
env: SYMFONY_VERSION="4.3.x"
- php: "7.1"
env: SYMFONY_VERSION="4.4.x"
- php: "7.2"
env: SYMFONY_VERSION="4.4.x"
- php: "7.3"
env: SYMFONY_VERSION="4.4.x"
- php: "7.4"
env: SYMFONY_VERSION="4.4.x"
#Symfony 5.0 cannot be installed with PHP 7.1
- php: "7.2"
env: SYMFONY_VERSION="5.0.x"
- php: "7.3"
env: SYMFONY_VERSION="5.0.x"
- php: "7.4"
env: SYMFONY_VERSION="5.0.x"
allow_failures:
- php: "7.1"
# Jan 2019: End of support for security fixes for Sf4.0
- env: SYMFONY_VERSION="4.0.x"
# Jul 2019: End of support for security fixes for Sf4.1
- env: SYMFONY_VERSION="4.1.x"
# Jan 2020: End of support for security fixes for Sf4.2
- env: SYMFONY_VERSION="4.2.x"
# Update composer, and update Symfony version depending on the matrix
before_install:
- composer selfupdate
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:$SYMFONY_VERSION; fi
- mkdir -p build/logs
# Install composer dependencies,
# but also phpunit (to test a specific version of it)
# and coveralls (to send the code coverage to coveralls.io, see "after_success" later in this file)
# Note: for coveralls to work you need a ".coveralls.yml" file (see other file in this gist).
install:
- composer install
- composer require --dev satooshi/php-coveralls:~2.0
# Run script and log coverage in the "build" directory
script:
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
# Run coveralls after success and if not in hhvm (too much cache, incorrect coverage)
after_success: |
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v ; fi;
# After a build, sends a notification to this e-mail with the build results.
notifications:
email:
recipients:
on_success: "never"
on_failure: "change"