forked from aio-libs-abandoned/aioredis-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (66 loc) · 1.61 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
sudo: false
dist: trusty
language: python
addons:
apt:
packages:
- socat
- enchant
- aspell
- aspell-en
env:
global:
- REDIS_TAGS="2.6.17 2.8.22 3.0.7 3.2.8 4.0.2 unstable" INSTALL_DIR=$HOME/redis
python:
- "3.5"
- "3.6"
- "nightly"
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
- python: "3.6"
env: DOCS_SPELL_CHECK="y"
install:
- pip install -r docs/requirements.txt
- pip install -e. -c tests/requirements.txt
script:
- make spelling
- python: "pypy3.5-5.8.0"
env: PYPY_RELEASE="pypy3-v6.0.0-linux64"
- python: "3.6"
env: UVLOOP="y"
allow_failures:
- env: UVLOOP="y"
- python: "pypy3.5-5.8.0"
install:
- make -j ci-build-redis
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy3.5-5.8.0" ]; then
wget -nv -c "https://bitbucket.org/pypy/pypy/downloads/$PYPY_RELEASE.tar.bz2" -O - | tar -xjC $HOME
export PYPY_VERSION="$($HOME/$PYPY_RELEASE/bin/pypy3 -V | grep PyPy | cut -d ' ' -f2)"
$HOME/$PYPY_RELEASE/bin/pypy3 -m venv --clear $HOME/virtualenvs/pypy3
$HOME/$PYPY_RELEASE/bin/pypy3 -m venv $HOME/virtualenvs/pypy3
source $HOME/virtualenvs/pypy3/bin/activate
python --version
pip --version
fi
- |
if [ "$UVLOOP" = "y" ]; then
export TEST_ARGS="$TEST_ARGS --uvloop"
pip install uvloop
fi;
- pip install codecov
- pip install -r tests/requirements.txt
- pip install -e .
script:
- make flake
- make ci-test
- make examples
cache: pip
before_cache:
- rm -rf $HOME/.cache/pip/http # drop tar.gz cache; keep only wheels
- rm -f $HOME/.cache/pip/log/debug.log
after_script:
- codecov