.travis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: xcode8.3
  32. env: TOXENV=py34
  33. - language: generic
  34. os: osx
  35. osx_image: xcode8.3
  36. env: TOXENV=py35
  37. - language: generic
  38. os: osx
  39. osx_image: xcode8.3
  40. env: TOXENV=py36
  41. before_install:
  42. - |
  43. test $TRAVIS_EVENT_TYPE != "pull_request" || {
  44. echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
  45. git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
  46. echo "Only docs were updated, stopping build process."
  47. exit
  48. }
  49. }
  50. install:
  51. - git fetch --unshallow --tags
  52. - ./.travis/install.sh
  53. script:
  54. - ./.travis/run.sh
  55. after_success:
  56. - ./.travis/upload_coverage.sh
  57. notifications:
  58. irc:
  59. channels:
  60. - "irc.freenode.org#borgbackup"
  61. use_notice: true
  62. skip_join: true