1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00
borg/.travis.yml
Thomas Waldmann 1ae99ac22a reduce testing on travis, no macOS, no py3x-dev, see #5467
- kill the macOS builds, way too expensive (and problematic anyway)
- kill the builds on python development versions, can't afford any more
2020-11-02 23:26:11 +01:00

52 lines
1.3 KiB
YAML

language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
fast_finish: true
include:
- python: "3.6"
os: linux
dist: bionic
env: TOXENV=py36-fuse2
- python: "3.7"
os: linux
dist: bionic
env: TOXENV=py37-fuse2
- python: "3.8"
os: linux
dist: focal
env: TOXENV=py38-fuse3
- python: "3.9"
os: linux
dist: focal
env: TOXENV=py39-fuse3
- python: "3.8"
os: linux
dist: focal
env: TOXENV=flake8
before_install: # Abort installation and don't run tests for pull requests if commit only changed the docs
- |
test $TRAVIS_EVENT_TYPE != "pull_request" || {
echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
echo "Only docs were updated, stopping build process."
exit
}
}
install: ./.travis/install.sh
script: ./.travis/run.sh
after_success: ./.travis/upload_coverage.sh
notifications:
irc:
channels:
- "irc.freenode.org#borgbackup"
use_notice: true
skip_join: true