.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. language: python
  2. cache:
  3. directories:
  4. - $HOME/.cache/pip
  5. matrix:
  6. fast_finish: true
  7. include:
  8. - python: "3.5"
  9. os: linux
  10. dist: xenial
  11. env: TOXENV=py35
  12. - python: "3.6"
  13. os: linux
  14. dist: bionic
  15. env: TOXENV=py36
  16. - python: "3.7"
  17. os: linux
  18. dist: bionic
  19. env: TOXENV=py37
  20. - python: "3.8"
  21. os: linux
  22. dist: focal
  23. env: TOXENV=py38
  24. - python: "3.9"
  25. os: linux
  26. dist: focal
  27. env: TOXENV=py39
  28. - python: "3.8"
  29. os: linux
  30. dist: focal
  31. env: TOXENV=flake8
  32. before_install: # Abort installation and don't run tests for pull requests if commit only changed the docs
  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: ./.travis/install.sh
  42. script: ./.travis/run.sh
  43. after_success: ./.travis/upload_coverage.sh
  44. notifications:
  45. irc:
  46. channels:
  47. - "irc.freenode.org#borgbackup"
  48. use_notice: true
  49. skip_join: true