forked from aio-libs-abandoned/aioredis-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (95 loc) · 1.73 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
dist: xenial
language: python
addons:
apt:
packages:
- socat
env:
global:
INSTALL_DIR: >-
$HOME/redis
PYTEST_ADDOPTS: >-
'-n auto'
python:
- "3.5"
- "3.6"
- "3.7"
- "nightly"
- "pypy3.5-7.0"
- "pypy3.6-7.1.1"
stages:
- lint
- test
- examples
jobs:
include:
# Add two extra tests with uvloop
- &UVLOOP
env: UVLOOP="y"
python: "3.6"
- <<: *UVLOOP
python: "3.7"
# Lint and spell-check docs
- stage: lint
cache: false
name: documentation spell check
python: "3.7"
addons:
apt:
packages:
- enchant
- aspell
- aspell-en
install:
- pip install -r docs/requirements.txt
- pip install -e. -c tests/requirements.txt
script: make spelling
- &FLAKE
name: flake
cache: false
python: "3.6"
install:
- pip install -r tests/requirements.txt
script:
- make flake
- <<: *FLAKE
python: "3.7"
- &MYPY
name: mypy
cache: false
python: "3.6"
install:
- pip install -r tests/requirements.txt -r tests/requirements-mypy.txt
script:
- make mypy
- <<: *MYPY
python: "3.7"
# Run examples Python 3.6, 3.7 and system Redis
- &EXAMPLES
stage: examples
cache: false
python: 3.6
install:
- pip install -e. -c tests/requirements.txt
script:
- make examples
- <<: *EXAMPLES
python: "3.7"
install:
- make ci-prune-old-redis
- make -j ci-build-redis
- |
if [ "$UVLOOP" = "y" ]; then
export PYTEST_ADDOPTS="$PYTEST_ADDOPTS --uvloop"
pip install uvloop
fi;
- pip install codecov
- pip install -r tests/requirements.txt
- pip install -e. -c tests/requirements.txt
script:
- make ci-test
cache:
directories:
- $HOME/redis/
after_script:
- codecov