47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
os:
|
|
- linux
|
|
- osx
|
|
matrix:
|
|
allow_failures:
|
|
- os: linux
|
|
compiler: clang
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libcrypto++-dev
|
|
- libfuse-dev
|
|
install:
|
|
# Detect number of CPU cores
|
|
- export NUMCORES=`grep -c ^processor /proc/cpuinfo` && if [ ! -n "$NUMCORES" ]; then export NUMCORES=`sysctl -n hw.ncpu`; fi
|
|
- echo Using $NUMCORES cores
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then ./travis.install_boost.sh; fi
|
|
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew upgrade boost && brew install cryptopp osxfuse; fi
|
|
# Install run_with_fuse.sh
|
|
- mkdir cmake
|
|
- cd cmake
|
|
- wget https://raw.githubusercontent.com/smessmer/travis-utils/master/run_with_fuse.sh
|
|
- chmod +x run_with_fuse.sh
|
|
- cmake --version
|
|
# Use /dev/urandom when /dev/random is accessed, because travis doesn't have enough entropy
|
|
- sudo cp -a /dev/urandom /dev/random
|
|
script:
|
|
- cmake .. -DBUILD_TESTING=on -DCMAKE_BUILD_TYPE=Debug
|
|
- make -j$NUMCORES
|
|
- ./test/cpp-utils/cpp-utils-test
|
|
# TODO Also run on osx once fixed
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then ./run_with_fuse.sh ./test/fspp/fspp-test ; fi
|
|
- ./test/parallelaccessstore/parallelaccessstore-test
|
|
- ./test/blockstore/blockstore-test
|
|
- ./test/blobstore/blobstore-test
|
|
# TODO Also run on osx once fixed
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux"]; then ./test/cryfs/cryfs-test ; fi
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux"]; then ./test/cryfs/cryfs-cli-test ; fi
|
|
after_script:
|
|
- rm run_with_fuse.sh
|