.travis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. sudo: required
  2. language: python
  3. cache:
  4. directories:
  5. - $HOME/.cache/pip
  6. matrix:
  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.6-dev"
  21. os: linux
  22. dist: trusty
  23. env: TOXENV=py36
  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=py36
  44. before_install:
  45. - |
  46. test $TRAVIS_EVENT_TYPE != "pull_request" || {
  47. echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
  48. git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
  49. echo "Only docs were updated, stopping build process."
  50. exit
  51. }
  52. }
  53. install:
  54. - git fetch --unshallow --tags
  55. - ./.travis/install.sh
  56. script:
  57. - ./.travis/run.sh
  58. after_success:
  59. - ./.travis/upload_coverage.sh
  60. notifications:
  61. irc:
  62. channels:
  63. - "irc.freenode.org#borgbackup"
  64. use_notice: true
  65. skip_join: true