.travis.yml 1.4 KB

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