.travis.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. language: python
  2. sudo: false
  3. matrix:
  4. include:
  5. - os: linux
  6. python: 2.7
  7. - os: linux
  8. python: 3.4
  9. - os: linux
  10. python: 3.5
  11. - os: linux
  12. python: 3.6
  13. - os: linux
  14. python: pypy
  15. - os: linux
  16. python: pypy3
  17. # It's important to use 'macpython' builds to get the least
  18. # restrictive wheel tag. It's also important to avoid
  19. # 'homebrew 3' because it floats instead of being a specific version.
  20. - os: osx
  21. language: generic
  22. env: TERRYFY_PYTHON='macpython 2.7'
  23. - os: osx
  24. language: generic
  25. env: TERRYFY_PYTHON='macpython 3.4'
  26. - os: osx
  27. language: generic
  28. env: TERRYFY_PYTHON='macpython 3.5'
  29. - os: osx
  30. language: generic
  31. env: TERRYFY_PYTHON='macpython 3.6.0'
  32. - services:
  33. - docker
  34. env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
  35. before_install:
  36. - if [[ $TRAVIS_TAG ]]; then bash .manylinux.sh; fi
  37. - exit 0
  38. - services:
  39. - docker
  40. env:
  41. - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
  42. - PRE_CMD=linux32
  43. before_install:
  44. - if [[ $TRAVIS_TAG ]]; then bash .manylinux.sh; fi
  45. - exit 0
  46. before_install:
  47. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi
  48. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi
  49. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi
  50. install:
  51. - pip install -U pip setuptools
  52. - pip install -U coveralls coverage
  53. - pip install -U -e ".[test]"
  54. script:
  55. - coverage run setup.py test -q
  56. notifications:
  57. email: false
  58. after_success:
  59. - coveralls
  60. - echo [distutils] > ~/.pypirc
  61. - echo index-servers = pypi >> ~/.pypirc
  62. - echo [pypi] >> ~/.pypirc
  63. - echo username=zope.wheelbuilder >> ~/.pypirc
  64. - echo password=$PYPIPASSWORD >> ~/.pypirc
  65. - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then pip install twine; fi
  66. - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then python setup.py bdist_wheel; fi
  67. - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then twine upload dist/*; fi
  68. env:
  69. global:
  70. secure: "CeOq8/6F8IlbRpKEk2z3RPD/q5cBCPXGOUgjYryG/c+7P6SCTxaTKfxiJPqT3sGgO8x/HcJVuvZghyqCPvysk3cbnq4SiMtI1S0hS/N3DFsGZHn25YQBipAYjA4YDUb6GqCpsSUIXdbGMEzG7DOSB6c+49+//wkjbBFHmPNWvMQ="
  71. cache: pip
  72. before_cache:
  73. - rm -f $HOME/.cache/pip/log/debug.log