.travis.yml 1.6 KB

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