.travis.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.5
  29. os: linux
  30. dist: xenial
  31. env: TOXENV=flake8
  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