special case Linux Travis setup

This commit is contained in:
Valient Gough 2017-08-08 00:38:10 -04:00
parent a98efa9a0b
commit a8eebf3d8e
No known key found for this signature in database
GPG Key ID: 33C65E29813C14DF
5 changed files with 22 additions and 6 deletions

View File

@ -23,8 +23,7 @@ branches:
- travis - travis
before_script: before_script:
- sudo modprobe fuse - ./ci/setup.sh
- cmake --version
script: script:
- ./ci/check.sh - ./ci/check.sh

View File

@ -7,7 +7,7 @@ if [[ ! -d build ]]
then then
mkdir build mkdir build
cd build cd build
cmake .. cmake .. $*
cd .. cd ..
fi fi

View File

@ -1,12 +1,19 @@
#!/bin/bash -eu #!/bin/bash -eu
cmake --version
CFG=""
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
CFG="-DENABLE_NLS=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl"
fi
if [[ ! -d build ]] if [[ ! -d build ]]
then then
mkdir build mkdir build
fi fi
cd build cd build
cmake .. cmake .. ${CFG}
make -j2 make -j2
make test make test

10
ci/setup.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash -eu
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo modprobe fuse
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew cask install osxfuse
fi

View File

@ -1035,7 +1035,7 @@ RootPtr createV6Config(EncFS_Context *ctx,
alg = findCipherAlgorithm("AES", keySize); alg = findCipherAlgorithm("AES", keySize);
// If case-insensitive system, opt for Block32 filename encoding // If case-insensitive system, opt for Block32 filename encoding
#if DEFAULT_CASE_INSENSITIVE #if defined(DEFAULT_CASE_INSENSITIVE)
nameIOIface = BlockNameIO::CurrentInterface(true); nameIOIface = BlockNameIO::CurrentInterface(true);
#else #else
nameIOIface = BlockNameIO::CurrentInterface(); nameIOIface = BlockNameIO::CurrentInterface();