Skip to content

Commit 9bf32d3

Browse files
committed
travis: Use default dist; fix redis-trib.rb error
1 parent c3b023b commit 9bf32d3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
dist: precise
21
sudo: required
32
language: php
43
php:
5-
- 5.3
64
- 5.4
75
- 5.5
86
- 5.6
@@ -15,6 +13,9 @@ matrix:
1513
allow_failures:
1614
- php: nightly
1715
include:
16+
# php 5.3 is only available on precise
17+
- php: 5.3
18+
dist: precise
1819
- php: 5.4
1920
env: CC=clang
2021
- php: 5.5
@@ -40,7 +41,9 @@ before_script:
4041
- mkdir -p tests/nodes/ && echo > tests/nodes/nodemap
4142
- for PORT in $(seq 6379 6382); do redis-server --port $PORT --daemonize yes; done
4243
- for PORT in $(seq 7000 7011); do redis-server --port $PORT --cluster-enabled yes --cluster-config-file $PORT.conf --daemonize yes; echo 127.0.0.1:$PORT >> tests/nodes/nodemap; done
43-
- wget https://raw.githubusercontent.com/antirez/redis/unstable/src/redis-trib.rb
44+
- wget https://raw.githubusercontent.com/antirez/redis/1673a3f32ce22498bcb60d73ee254e61e323dda5/src/redis-trib.rb
45+
# Upstream suggests: redis-cli --cluster create $(seq -f 127.0.0.1:%g 7000 7011) --cluster-replicas 3
46+
# but --cluster is an unknown option for travis trusty
4447
- echo yes | ruby redis-trib.rb create --replicas 3 $(seq -f 127.0.0.1:%g 7000 7011)
4548
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
4649
script:

0 commit comments

Comments
 (0)