.travis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. sudo: required
  2. language: python
  3. cache:
  4. directories:
  5. - $HOME/.cache/pip
  6. # note: use py 3.5.2, it has lzma support. 3.5(.0) on travis.org/trusty does not.
  7. matrix:
  8. include:
  9. - python: 3.5.2
  10. os: linux
  11. dist: trusty
  12. env: TOXENV=py35
  13. - python: 3.6
  14. os: linux
  15. dist: trusty
  16. env: TOXENV=py36
  17. - python: 3.5.2
  18. os: linux
  19. dist: trusty
  20. env: TOXENV=flake8
  21. - python: "3.6-dev"
  22. os: linux
  23. dist: trusty
  24. env: TOXENV=py36
  25. - language: generic
  26. os: osx
  27. osx_image: xcode6.4
  28. env: TOXENV=py35
  29. - language: generic
  30. os: osx
  31. osx_image: xcode6.4
  32. env: TOXENV=py36
  33. before_install:
  34. - |
  35. echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
  36. git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
  37. echo "Only docs were updated, stopping build process."
  38. exit
  39. }
  40. install:
  41. - git fetch --unshallow --tags
  42. - ./.travis/install.sh
  43. script:
  44. - ./.travis/run.sh
  45. after_success:
  46. - ./.travis/upload_coverage.sh
  47. notifications:
  48. irc:
  49. channels:
  50. - "irc.freenode.org#borgbackup"
  51. use_notice: true
  52. skip_join: true