.travis.yml 1.6 KB

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