mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
Merge pull request #5529 from Gu1nness/5528-remove-travis
Remove travis configuration from borg
This commit is contained in:
commit
dcecc149d8
4 changed files with 0 additions and 149 deletions
52
.travis.yml
52
.travis.yml
|
@ -1,52 +0,0 @@
|
||||||
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
|
|
|
@ -1,70 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# Travis clones with depth=50 which might be too shallow for git describe, see https://github.com/pypa/setuptools_scm/issues/93
|
|
||||||
git fetch --unshallow --tags
|
|
||||||
|
|
||||||
if [ "${TRAVIS_OS_NAME}" = "osx" ]
|
|
||||||
then
|
|
||||||
|
|
||||||
# Update brew itself
|
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=1 # Auto-updating everything would take too much time
|
|
||||||
brew update > /dev/null
|
|
||||||
brew cleanup # Preempt possible scheduled clean-up so it doesn't clutter the log later
|
|
||||||
# Install and/or upgrade dependencies
|
|
||||||
#brew install zstd || brew upgrade zstd # Installation takes very long due to CMake dependency and isn't necessary for the tests as borg comes bundled with zstd anyway
|
|
||||||
brew install lz4 || brew upgrade lz4
|
|
||||||
brew install xz || brew upgrade xz # Required for Python lzma module
|
|
||||||
brew install Caskroom/cask/osxfuse || brew upgrade Caskroom/cask/osxfuse # Required for Python llfuse module
|
|
||||||
brew install pyenv || brew upgrade pyenv
|
|
||||||
|
|
||||||
# Configure pkg-config to use OpenSSL 1.1 from Homebrew
|
|
||||||
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
|
||||||
|
|
||||||
# Configure pyenv with Python version according to TOXENV
|
|
||||||
eval "$(pyenv init -)"
|
|
||||||
if [ "${TOXENV}" = "py36" ]
|
|
||||||
then
|
|
||||||
pyenv install 3.6.0
|
|
||||||
pyenv global 3.6.0
|
|
||||||
elif [ "${TOXENV}" = "py37" ]
|
|
||||||
then
|
|
||||||
pyenv install 3.7.0
|
|
||||||
pyenv global 3.7.0
|
|
||||||
else
|
|
||||||
printf '%s\n' "Unexpected value for TOXENV environment variable"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
pyenv rehash
|
|
||||||
|
|
||||||
elif [ "${TRAVIS_OS_NAME}" = "linux" ]
|
|
||||||
then
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y pkg-config fakeroot
|
|
||||||
#sudo apt-get install -y liblz4-dev # Too old on trusty and xenial, but might be useful in future versions
|
|
||||||
#sudo apt-get install -y libzstd-dev # Too old on trusty and xenial, but might be useful in future versions
|
|
||||||
sudo apt-get install -y libacl1-dev
|
|
||||||
sudo apt-get install -y libfuse-dev fuse || true # Required for Python llfuse module
|
|
||||||
sudo apt-get install -y libfuse3-dev fuse3 || true # Required for Python pyfuse3 module
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
printf '%s\n' "Unexpected value for TRAVIS_OS_NAME environment variable"
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setup and activate virtual environment
|
|
||||||
python -m pip install virtualenv
|
|
||||||
python -m virtualenv ~/.venv
|
|
||||||
source ~/.venv/bin/activate
|
|
||||||
|
|
||||||
# Install requirements
|
|
||||||
pip install -r requirements.d/development.txt
|
|
||||||
pip install codecov
|
|
||||||
python setup.py --version
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
||||||
eval "$(pyenv init -)"
|
|
||||||
# set our flags to use homebrew openssl
|
|
||||||
export ARCHFLAGS="-arch x86_64"
|
|
||||||
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# do not use fakeroot, but run as root on travis.
|
|
||||||
# avoids the dreaded EISDIR sporadic failures. see #2482.
|
|
||||||
sudo -E bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
NO_COVERAGE_TOXENVS=(pep8)
|
|
||||||
if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ ${TOXENV} ]]; then
|
|
||||||
source ~/.venv/bin/activate
|
|
||||||
# on osx, tests run as root, need access to .coverage
|
|
||||||
sudo chmod 666 .coverage
|
|
||||||
codecov -e TRAVIS_OS_NAME TOXENV
|
|
||||||
fi
|
|
Loading…
Reference in a new issue