forked from jonathanslenders/asyncio-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (49 loc) · 1.38 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
language: python
before_install:
- sudo apt-get install redis-server
- sudo service redis-server start
- redis-server --version
- which redis-server
jobs:
include:
# Code linters
- name: black
python: "3.8"
install: python -m pip install black
script: black -t py36 .
- name: isort
python: "3.8"
install: python -m pip install isort
script: isort -rc --check .
- name: flake8
python: "3.8"
install: python -m pip install flake8
script: flake8
# Run unit tests on different Python versions
- name: Python 3.6
python: "3.6"
install: python -m pip install .[hiredis]
script: python tests.py
- name: Python 3.7
python: "3.7"
install: python -m pip install .[hiredis]
script: python tests.py
- name: Python 3.8
python: "3.8"
install: python -m pip install .[hiredis]
script: python tests.py
# Run unit tests on different configurations
- name: No hiredis
python: "3.8"
install: python -m pip install .
script: python tests.py
- name: Start redis server
python: "3.8"
env: START_REDIS_SERVER=True REDIS_PORT=0 REDIS_HOST=/tmp/asyncio
install: python -m pip install .[hiredis]
script: python tests.py
# Documentation
- name: docs
python: "3.8"
install: python -m pip install . sphinx sphinx_rtd_theme
script: sphinx-build -n -j auto -b html -d build/doctrees docs build/html