.travis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.5
  17. os: linux
  18. dist: trusty
  19. env: TOXENV=flake8
  20. - python: "3.6-dev"
  21. os: linux
  22. dist: trusty
  23. env: TOXENV=py36
  24. - language: generic
  25. os: osx
  26. osx_image: xcode6.4
  27. env: TOXENV=py35
  28. - language: generic
  29. os: osx
  30. osx_image: xcode6.4
  31. env: TOXENV=py36
  32. before_install:
  33. - |
  34. test $TRAVIS_EVENT_TYPE != "pull_request" || {
  35. echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
  36. git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
  37. echo "Only docs were updated, stopping build process."
  38. exit
  39. }
  40. }
  41. install:
  42. - git fetch --unshallow --tags
  43. - ./.travis/install.sh
  44. script:
  45. - ./.travis/run.sh
  46. after_success:
  47. - ./.travis/upload_coverage.sh
  48. notifications:
  49. irc:
  50. channels:
  51. - "irc.freenode.org#borgbackup"
  52. use_notice: true
  53. skip_join: true