forked from snc/SncRedisBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.79 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
language: php
services:
- redis-server
matrix:
fast_finish: true
include:
- php: 7.1
env: SYMFONY_VERSION="3.4.*" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: SYMFONY_VERSION="4.4.*"
- php: 7.3
env: SYMFONY_VERSION="4.4.*"
- php: 7.4
env: SYMFONY_VERSION="4.4.*"
- php: 7.4
env: SYMFONY_VERSION="5.0.*"
- php: 7.2
env: SYMFONY_VERSION="5.1.*"
- php: 7.4
env: SYMFONY_VERSION="5.1.*"
- php: 7.4
env: SYMFONY_VERSION="5.2.*" STABILITY="dev"
allow_failures:
- php: 7.4
env: SYMFONY_VERSION="5.2.*" STABILITY="dev"
dist: xenial
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
global:
- SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
- COMPOSER_MEMORY_LIMIT=-1
before_install:
- phpenv config-rm xdebug.ini || true
- if [[ ${TRAVIS_PHP_VERSION} != hhvm ]]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
- php -i | grep -i --color=never "Redis Version"
- if [[ ${TRAVIS_PHP_VERSION} != hhvm ]]; then phpenv rehash; fi;
- composer self-update
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
- if ! [ -z "${STABILITY}" ]; then composer config minimum-stability ${STABILITY}; fi;
- if [ "${SYMFONY_VERSION}" != "" ]; then composer config extra.symfony.require ${SYMFONY_VERSION}; fi;
- for PORT in {7000..7008}; do sudo redis-server --port ${PORT} --cluster-enabled yes --cluster-config-file ${PORT}.conf --daemonize yes; echo 127.0.0.1:${PORT}; done
- echo yes | redis-cli --cluster create $(seq -f 127.0.0.1:%g 7000 7008) --cluster-replicas 2
install:
- composer update --prefer-dist --no-interaction --no-progress ${COMPOSER_FLAGS}
script:
- composer validate --strict --no-check-lock
- bin/phpunit -v