.travis.yml 1.2 KB

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