-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
39 lines (39 loc) · 1.16 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
language: python
sudo: false
cache: false
python:
- '3.5'
env:
global:
PYTHONUNBUFFERED=yes
matrix:
- TOXENV=2.7-django1.10
- TOXENV=2.7-django1.9
- TOXENV=pypy-django1.10
- TOXENV=pypy-django1.9
- TOXENV=3.4-django1.10
- TOXENV=3.4-django1.9
- TOXENV=3.5-django1.10
- TOXENV=3.5-django1.9
- TOXENV=flake8
- TOXENV=flakeplus
- TOXENV=apicheck
- TOXENV=cov
before_install:
- |
if [ "$TOXENV" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
cd "$PYENV_ROOT" && git pull
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
fi
install: travis_retry pip install -U tox
script: tox -v -- -v
after_success:
- .tox/$TOXENV/bin/coverage xml
- .tox/$TOXENV/bin/codecov -e TOXENV