.travis.yml 730 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. sudo: false
  2. services:
  3. - docker
  4. language: python
  5. cache: pip
  6. services:
  7. - docker
  8. before_install:
  9. - pyenv versions
  10. - pyenv version-name
  11. - env
  12. install:
  13. - pip install tox
  14. python:
  15. - '2.7'
  16. - '3.4'
  17. - '3.5'
  18. - '3.6'
  19. - '3.7-dev'
  20. env:
  21. - SALT=-v2018.3 BACKEND=-cherrypy CODECOV=py
  22. - SALT=-v2018.3 BACKEND=-tornado CODECOV=py
  23. - SALT=-v2019.2 BACKEND=-cherrypy CODECOV=py
  24. - SALT=-v2019.2 BACKEND=-tornado CODECOV=py
  25. matrix:
  26. env:
  27. script:
  28. - PYTHON="${TRAVIS_PYTHON_VERSION%-dev}"
  29. - docker run -v $PWD:/pepper -ti --rm gtmanfred/pepper:latest tox -c /pepper/tox.ini -e "${TRAVIS_PYTHON_VERSION%%.*}flake8,${CODECOV}${PYTHON//./}${BACKEND}${SALT}"
  30. after_success:
  31. - sudo chown $USER .tox/
  32. - if [[ $CODECOV == "py" ]]; then tox -e codecov; fi