mirror of https://github.com/borgbackup/borg.git
Merge pull request #1518 from ThomasWaldmann/travis-fuse-testing
travis: test fuse-enabled borg
This commit is contained in:
commit
725eaf28ce
|
@ -10,12 +10,15 @@ matrix:
|
|||
include:
|
||||
- python: 3.4
|
||||
os: linux
|
||||
dist: trusty
|
||||
env: TOXENV=py34
|
||||
- python: 3.5
|
||||
os: linux
|
||||
dist: trusty
|
||||
env: TOXENV=py35
|
||||
- python: 3.5
|
||||
os: linux
|
||||
dist: trusty
|
||||
env: TOXENV=flake8
|
||||
- language: generic
|
||||
os: osx
|
||||
|
|
|
@ -16,6 +16,8 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
|
|||
|
||||
brew install lz4
|
||||
brew outdated pyenv || brew upgrade pyenv
|
||||
brew install pkg-config
|
||||
brew install Caskroom/versions/osxfuse-beta
|
||||
|
||||
case "${TOXENV}" in
|
||||
py34)
|
||||
|
@ -31,14 +33,14 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
|
|||
python -m pip install --user 'virtualenv<14.0'
|
||||
else
|
||||
pip install 'virtualenv<14.0'
|
||||
sudo add-apt-repository -y ppa:gezakovacs/lz4
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y liblz4-dev
|
||||
sudo apt-get install -y libacl1-dev
|
||||
sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
|
||||
fi
|
||||
|
||||
python -m virtualenv ~/.venv
|
||||
source ~/.venv/bin/activate
|
||||
pip install -r requirements.d/development.txt
|
||||
pip install codecov
|
||||
pip install -e .
|
||||
pip install -e .[fuse]
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -11,7 +11,8 @@ changedir = {toxworkdir}
|
|||
deps =
|
||||
-rrequirements.d/development.txt
|
||||
-rrequirements.d/attic.txt
|
||||
commands = py.test --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
||||
-rrequirements.d/fuse.txt
|
||||
commands = py.test -rs --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
||||
# fakeroot -u needs some env vars:
|
||||
passenv = *
|
||||
|
||||
|
|
Loading…
Reference in New Issue