blob: bc2748297cd9a49dc17c8a62e5332cfa4f3014ad (
plain)
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
|
dist: xenial
sudo: false
language: python
cache: pip
python:
- 3.8
- 3.7
- 3.6
- 3.5
- 3.4
- 2.7
before_install:
- wget http://download.redis.io/releases/redis-5.0.3.tar.gz && mkdir redis_install && tar -xvzf redis-5.0.3.tar.gz -C redis_install && cd redis_install/redis-5.0.3 && make && src/redis-server --daemonize yes && cd ../..
- redis-cli info
env:
- TEST_HIREDIS=0
- TEST_HIREDIS=1
install:
- pip install -e .
- "if [[ $TEST_PYCODESTYLE == '1' ]]; then pip install pycodestyle; fi"
- "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi"
- "if [[ $TEST_PYCODESTYLE != '1' ]]; then pip install codecov coverage; fi"
script: "if [[ $TEST_PYCODESTYLE == '1' ]]; then pycodestyle --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,redis_install .; else coverage run setup.py test; fi"
after_success:
- "if [[ $TEST_PYCODESTYLE != '1' ]]; then codecov; fi"
matrix:
include:
- python: 2.7
env: TEST_PYCODESTYLE=1
- python: 3.8
env: TEST_PYCODESTYLE=1
|