1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00
borg/.travis.yml
Thomas Waldmann eb326cbac0 travis: macOS: test on py35 and py37, linux: test on py37
macOS: to cover some rather old and some rather new python
(not 3.8 though, but 3.8.0 is tested on linux).

linux: to test on 3.7 releases also. stop testing 3.6-dev.
2019-11-26 18:53:09 +01:00

71 lines
1.6 KiB
YAML

language: python
cache:
directories:
- $HOME/.cache/pip
matrix:
include:
- python: 3.5
os: linux
dist: trusty
env: TOXENV=py35
- python: 3.6
os: linux
dist: trusty
env: TOXENV=py36
- python: 3.7
os: linux
dist: xenial
env: TOXENV=py37
- python: 3.8
os: linux
dist: xenial
env: TOXENV=py38
- python: "3.7-dev"
os: linux
dist: xenial
env: TOXENV=py37
- python: "3.8-dev"
os: linux
dist: xenial
env: TOXENV=py38
- python: 3.5
os: linux
dist: xenial
env: TOXENV=flake8
- language: generic
os: osx
osx_image: xcode8.3
env: TOXENV=py35
- language: generic
os: osx
osx_image: xcode8.3
env: TOXENV=py37
before_install:
- |
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:
- git fetch --unshallow --tags
- ./.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