forked from Grokzen/redis-py-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 869 Bytes
/
.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
sudo: false
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
services:
- redis-server
install:
- "if [[ $REDIS_VERSION == '3.0' ]]; then REDIS_VERSION=3.0.7 make redis-install; fi"
- "if [[ $REDIS_VERSION == '3.2' ]]; then REDIS_VERSION=3.2.0-rc3 make redis-install; fi"
- pip install -r dev-requirements.txt
- pip install -e .
- "if [[ $HIREDIS == '1' ]]; then pip install hiredis; fi"
env:
# Redis 3.0.7
- HIREDIS=0 REDIS_VERSION=3.0
# Redis 3.0.7 and HIREDIS
- HIREDIS=1 REDIS_VERSION=3.0
# Redis 3.2.0-rc3
- HIREDIS=0 REDIS_VERSION=3.2
# Redis 3.2.0-rc3 and HIREDIS
- HIREDIS=1 REDIS_VERSION=3.2
script:
- make start
- coverage erase
- coverage run --source rediscluster -p -m py.test
- make stop
after_success:
- coverage combine
- coveralls
matrix:
allow_failures:
- python: "nightly"