forked from Grokzen/redis-py-cluster
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
64 lines (64 loc) · 1.9 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
63
64
os: linux
dist: xenial
language: python
cache: pip
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "nightly"
services:
- redis
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"
- "if [[ $REDIS_VERSION == '6.0' ]]; then REDIS_VERSION=6.0 make redis-install; fi"
- "if [[ $TEST_PYCODESTYLE == '1' ]]; then pip install pycodestyle; fi"
- pip install -r dev-requirements.txt
- pip install -e .
- "if [[ $HIREDIS == '1' ]]; then pip install hiredis; fi"
- "pip freeze | grep redis"
- "pip freeze"
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
# Redis 6.0 & HIREDIS
- HIREDIS=0 REDIS_VERSION=6.0
- HIREDIS=1 REDIS_VERSION=6.0
script:
- make start
- coverage erase
- coverage run --source rediscluster -p -m py.test
after_success:
- coverage combine
- coveralls
- "if [[ $TEST_PYCODESTYLE == '1' ]]; then pycodestyle --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,redis_install .; fi"
jobs:
allow_failures:
- python: "nightly"
- python: 2.7
env: TEST_PYCODESTYLE=1
- python: 3.6
env: TEST_PYCODESTYLE=1
# python 3.7 has to be specified manually in the matrix
# https://github.com/travis-ci/travis-ci/issues/9815
- python: 3.7
dist: xenial
env: TEST_HIREDIS=0
- python: 3.7
dist: xenial
env: TEST_HIREDIS=1