.travis.yml 1.6 KB

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