Selaa lähdekoodia

travis: test fuse-enabled borg

Thomas Waldmann 8 vuotta sitten
vanhempi
sitoutus
ebe1143570
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 4 1
      .travis/install.sh
  2. 2 1
      tox.ini

+ 4 - 1
.travis/install.sh

@@ -17,6 +17,8 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
     brew install lz4
     brew install xz  # required for python lzma module
     brew outdated pyenv || brew upgrade pyenv
+    brew install pkg-config
+    brew install Caskroom/versions/osxfuse-beta
 
     case "${TOXENV}" in
         py34)
@@ -35,10 +37,11 @@ else
     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]

+ 2 - 1
tox.ini

@@ -8,7 +8,8 @@ envlist = py{34,35,36},flake8
 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 = *