.travis.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. language: python
  2. sudo: false
  3. cache: false
  4. python:
  5. - '3.5'
  6. os:
  7. - linux
  8. - osx
  9. env:
  10. global:
  11. PYTHONUNBUFFERED=yes
  12. matrix:
  13. - TOXENV=2.7
  14. - TOXENV=3.4
  15. - TOXENV=3.5
  16. - TOXENV=pypy PYPY_VERSION="5.3"
  17. - TOXENV=pypy3
  18. - TOXENV=flake8
  19. - TOXENV=flakeplus
  20. - TOXENV=apicheck
  21. - TOXENV=configcheck
  22. before_install:
  23. - |
  24. if [ "$TOXENV" = "pypy" ]; then
  25. export PYENV_ROOT="$HOME/.pyenv"
  26. if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
  27. cd "$PYENV_ROOT" && git pull
  28. else
  29. rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
  30. fi
  31. "$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
  32. virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
  33. source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
  34. fi
  35. install: travis_retry pip install -U tox
  36. script: tox -v -- -v
  37. after_success:
  38. - .tox/$TRAVIS_PYTHON_VERSION/bin/coverage xml
  39. - .tox/$TRAVIS_PYTHON_VERSION/bin/codecov -e TOXENV
  40. notifications:
  41. irc:
  42. channels:
  43. - "chat.freenode.net#celery"
  44. on_success: change
  45. on_failure: change