forked from kakserpom/php-redis-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.36 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
sudo: required
language: php
php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- hhvm
matrix:
allow_failures:
- php: hhvm
services:
- docker
install:
- composer install
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USER" --password-stdin
- docker pull cheprasov/redis-for-tests:latest;
- docker pull cheprasov/redis-cluster-for-tests:latest;
- |
docker run -i -t -d \
-p 127.0.0.1:6381:6381 \
-p 127.0.0.1:6382:6382 \
-p 127.0.0.1:6383:6383 \
-p 127.0.0.1:6384:6384 \
-p 127.0.0.1:6385:6385 \
-p 127.0.0.1:6386:6386 \
-p 127.0.0.1:6387:6387 \
-p 127.0.0.1:6388:6388 \
-p 127.0.0.1:6389:6389 \
-p 127.0.0.1:6390:6390 \
-p 127.0.0.1:6391:6391 \
-p 127.0.0.1:6392:6392 \
-p 127.0.0.1:6393:6393 \
-p 127.0.0.1:6394:6394 \
cheprasov/redis-for-tests
- |
docker run -i -t -d \
-p 127.0.0.1:7001:7001 \
-p 127.0.0.1:7002:7002 \
-p 127.0.0.1:7003:7003 \
-p 127.0.0.1:7004:7004 \
-p 127.0.0.1:7005:7005 \
-p 127.0.0.1:7006:7006 \
cheprasov/redis-cluster-for-tests
- docker ps;
- sleep 5;
before_script:
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]] ; then rm ./tests/Unit/Client/AbstractRedisClientIsolatedTest.php; fi;