celery/.travis.yml

46 строки
1.2 KiB
YAML

language: python
sudo: false
cache: false
python:
- '3.5'
os:
- linux
- osx
env:
global:
PYTHONUNBUFFERED=yes
matrix:
- TOXENV=2.7
- TOXENV=3.4
- TOXENV=3.5
- TOXENV=pypy PYPY_VERSION="5.3"
- TOXENV=pypy3
- TOXENV=flake8
- TOXENV=flakeplus
- TOXENV=apicheck
- TOXENV=configcheck
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/$TRAVIS_PYTHON_VERSION/bin/coverage xml
- .tox/$TRAVIS_PYTHON_VERSION/bin/codecov -e TOXENV
notifications:
irc:
channels:
- "chat.freenode.net#celery"
on_success: change
on_failure: change