.travis.yml 1.3 KB

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