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:
|
include:
|
||||||
- python: 3.4
|
- python: 3.4
|
||||||
os: linux
|
os: linux
|
||||||
|
dist: trusty
|
||||||
env: TOXENV=py34
|
env: TOXENV=py34
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
os: linux
|
os: linux
|
||||||
|
dist: trusty
|
||||||
env: TOXENV=py35
|
env: TOXENV=py35
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
os: linux
|
os: linux
|
||||||
|
dist: trusty
|
||||||
env: TOXENV=flake8
|
env: TOXENV=flake8
|
||||||
- language: generic
|
- language: generic
|
||||||
os: osx
|
os: osx
|
||||||
|
|
|
@ -16,6 +16,8 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
|
||||||
|
|
||||||
brew install lz4
|
brew install lz4
|
||||||
brew outdated pyenv || brew upgrade pyenv
|
brew outdated pyenv || brew upgrade pyenv
|
||||||
|
brew install pkg-config
|
||||||
|
brew install Caskroom/versions/osxfuse-beta
|
||||||
|
|
||||||
case "${TOXENV}" in
|
case "${TOXENV}" in
|
||||||
py34)
|
py34)
|
||||||
|
@ -31,14 +33,14 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
|
||||||
python -m pip install --user 'virtualenv<14.0'
|
python -m pip install --user 'virtualenv<14.0'
|
||||||
else
|
else
|
||||||
pip install 'virtualenv<14.0'
|
pip install 'virtualenv<14.0'
|
||||||
sudo add-apt-repository -y ppa:gezakovacs/lz4
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y liblz4-dev
|
sudo apt-get install -y liblz4-dev
|
||||||
sudo apt-get install -y libacl1-dev
|
sudo apt-get install -y libacl1-dev
|
||||||
|
sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python -m virtualenv ~/.venv
|
python -m virtualenv ~/.venv
|
||||||
source ~/.venv/bin/activate
|
source ~/.venv/bin/activate
|
||||||
pip install -r requirements.d/development.txt
|
pip install -r requirements.d/development.txt
|
||||||
pip install codecov
|
pip install codecov
|
||||||
pip install -e .
|
pip install -e .[fuse]
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -11,7 +11,8 @@ changedir = {toxworkdir}
|
||||||
deps =
|
deps =
|
||||||
-rrequirements.d/development.txt
|
-rrequirements.d/development.txt
|
||||||
-rrequirements.d/attic.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:
|
# fakeroot -u needs some env vars:
|
||||||
passenv = *
|
passenv = *
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue