forked from Grokzen/redis-py-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.15 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
sudo: false
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6-dev"
- "nightly"
services:
- redis-server
install:
- "if [[ $REDIS_VERSION == '3.0' ]]; then REDIS_VERSION=3.0 make redis-install; fi"
- "if [[ $REDIS_VERSION == '3.2' ]]; then REDIS_VERSION=3.2 make redis-install; fi"
- "if [[ $REDIS_VERSION == '4.0' ]]; then REDIS_VERSION=4.0 make redis-install; fi"
- "if [[ $REDIS_VERSION == '5.0' ]]; then REDIS_VERSION=5.0 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 & HIREDIS
- HIREDIS=0 REDIS_VERSION=3.0
- HIREDIS=1 REDIS_VERSION=3.0
# Redis 3.2 & HIREDIS
- HIREDIS=0 REDIS_VERSION=3.2
- HIREDIS=1 REDIS_VERSION=3.2
# Redis 4.0 & HIREDIS
- HIREDIS=0 REDIS_VERSION=4.0
- HIREDIS=1 REDIS_VERSION=4.0
# Redis 5.0 & HIREDIS
- HIREDIS=0 REDIS_VERSION=5.0
- HIREDIS=1 REDIS_VERSION=5.0
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"