.travis.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. sudo: required
  2. language: python
  3. cache:
  4. directories:
  5. - $HOME/.cache/pip
  6. # note: use py 3.5.2, it has lzma support. 3.5(.0) on travis.org/trusty does not.
  7. matrix:
  8. include:
  9. - python: 3.4
  10. os: linux
  11. dist: trusty
  12. env: TOXENV=py34
  13. - python: 3.5.2
  14. os: linux
  15. dist: trusty
  16. env: TOXENV=py35
  17. - python: 3.6
  18. os: linux
  19. dist: trusty
  20. env: TOXENV=py36
  21. - python: 3.4
  22. os: linux
  23. dist: trusty
  24. env: TOXENV=flake8
  25. - python: "3.6-dev"
  26. os: linux
  27. dist: trusty
  28. env: TOXENV=py36
  29. - language: generic
  30. os: osx
  31. osx_image: xcode6.4
  32. env: TOXENV=py34
  33. - language: generic
  34. os: osx
  35. osx_image: xcode6.4
  36. env: TOXENV=py35
  37. - language: generic
  38. os: osx
  39. osx_image: xcode6.4
  40. env: TOXENV=py36
  41. before_install:
  42. - |
  43. echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
  44. git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
  45. echo "Only docs were updated, stopping build process."
  46. exit
  47. }
  48. install:
  49. - git fetch --unshallow --tags
  50. - ./.travis/install.sh
  51. script:
  52. - ./.travis/run.sh
  53. after_success:
  54. - ./.travis/upload_coverage.sh
  55. notifications:
  56. irc:
  57. channels:
  58. - "irc.freenode.org#borgbackup"
  59. use_notice: true
  60. skip_join: true