forked from eMAGTechLabs/annotation-cache-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.16 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer
php:
- 7.4
- 8.0
matrix:
include:
- php: 7.4
env:
- SYMFONY_VERSION=5.1.*
- COMPOSER_FLAGS="--prefer-stable"
- php: 7.4
env:
- SYMFONY_VERSION=5.2.*
- COMPOSER_FLAGS="--prefer-stable"
- php: 8.0
env:
- SYMFONY_VERSION=5.1.*
- COMPOSER_FLAGS="--prefer-stable"
- php: 8.0
env:
- SYMFONY_VERSION=5.2.*
- COMPOSER_FLAGS="--prefer-stable"
before_install:
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- |
if [ "$SYMFONY_VERSION" != "" ]; then
sed -ri 's/"symfony\/([^monolog].+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json;
fi;
install:
- composer update $COMPOSER_FLAGS
script:
- composer validate --strict --no-check-lock
- mkdir -p build
- composer run-script tests
- composer run-script build
after_script:
- php ./bin/php-coveralls -v