.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. sudo: false
  2. language: python
  3. cache:
  4. directories:
  5. # we only bother to cache the wheels; parts of the http cache get
  6. # invalidated every build (because they get served with a max-age of 600
  7. # seconds), which means that we end up re-uploading the whole cache for
  8. # every build, which is time-consuming In any case, it's not obvious that
  9. # downloading the cache from S3 would be much faster than downloading the
  10. # originals from pypi.
  11. #
  12. - $HOME/.cache/pip/wheels
  13. # don't clone the whole repo history, one commit will do
  14. git:
  15. depth: 1
  16. # only build branches we care about (PRs are built seperately)
  17. branches:
  18. only:
  19. - master
  20. - develop
  21. - /^release-v/
  22. matrix:
  23. fast_finish: true
  24. include:
  25. - python: 2.7
  26. env: TOX_ENV=packaging
  27. - python: 3.6
  28. env: TOX_ENV="pep8,check_isort"
  29. - python: 2.7
  30. env: TOX_ENV=py27
  31. - python: 2.7
  32. env: TOX_ENV=py27-old
  33. - python: 2.7
  34. env: TOX_ENV=py27-postgres TRIAL_FLAGS="-j 4"
  35. services:
  36. - postgresql
  37. - python: 3.5
  38. env: TOX_ENV=py35
  39. - python: 3.6
  40. env: TOX_ENV=py36
  41. - python: 3.6
  42. env: TOX_ENV=py36-postgres TRIAL_FLAGS="-j 4"
  43. services:
  44. - postgresql
  45. - # we only need to check for the newsfragment if it's a PR build
  46. if: type = pull_request
  47. python: 3.6
  48. env: TOX_ENV=check-newsfragment
  49. script:
  50. - git remote set-branches --add origin develop
  51. - git fetch origin develop
  52. - tox -e $TOX_ENV
  53. install:
  54. - pip install tox
  55. script:
  56. - tox -e $TOX_ENV