forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.6 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
language: python
sudo: required
cache: false
python:
- '3.5'
os:
- linux
env:
global:
PYTHONUNBUFFERED=yes
matrix:
- TOXENV=2.7-unit
- TOXENV=2.7-integration-rabbitmq
- TOXENV=2.7-integration-redis
- TOXENV=3.4-unit
- TOXENV=3.4-integration-rabbitmq
- TOXENV=3.4-integration-redis
- TOXENV=3.5-unit
- TOXENV=3.5-integration-rabbitmq
- TOXENV=3.5-integration-redis
- TOXENV=pypy-unit PYPY_VERSION="5.3"
- TOXENV=pypy-integration-rabbitmq PYPY_VERSION="5.3"
- TOXENV=pypy-integration-redis PYPY_VERSION="5.3"
- TOXENV=flake8
- TOXENV=flakeplus
- TOXENV=apicheck
- TOXENV=configcheck
- TOXENV=pydocstyle
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
after_success:
- .tox/$TRAVIS_PYTHON_VERSION/bin/coverage xml
- .tox/$TRAVIS_PYTHON_VERSION/bin/codecov -e TOXENV
install: travis_retry pip install -U tox
script: tox -v -- -v
notifications:
irc:
channels:
- "chat.freenode.net#celery"
on_success: change
on_failure: change
services:
- rabbitmq
- redis