libcryfs/.travis.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

2015-02-19 19:36:43 +01:00
language: cpp
2015-04-08 17:01:14 +02:00
sudo: required
2016-02-11 03:11:39 +01:00
dist: trusty
2015-02-19 19:36:43 +01:00
compiler:
- gcc
2016-02-11 03:08:32 +01:00
- clang
2016-02-11 04:26:26 +01:00
os:
- linux
- osx
matrix:
allow_failures:
- os: linux
compiler: clang
2016-02-11 03:16:18 +01:00
addons:
apt:
packages:
- libcrypto++-dev
2016-02-11 12:14:44 +01:00
- libfuse-dev
2015-02-20 02:02:35 +01:00
install:
# Detect number of CPU cores
- export NUMCORES=`grep -c ^processor /proc/cpuinfo` && if [ ! -n "$NUMCORES" ]; then export NUMCORES=`sysctl -n hw.ncpu`; fi
2016-02-12 13:11:11 +01:00
- 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
2016-02-11 16:39:42 +01:00
# Install run_with_fuse.sh
2016-02-11 14:23:14 +01:00
- mkdir cmake
- cd cmake
2015-02-20 20:45:56 +01:00
- wget https://raw.githubusercontent.com/smessmer/travis-utils/master/run_with_fuse.sh
2016-02-11 12:14:44 +01:00
- chmod +x run_with_fuse.sh
2015-10-28 10:02:58 +01:00
- cmake --version
2015-09-07 16:44:40 +02:00
# Use /dev/urandom when /dev/random is accessed, because travis doesn't have enough entropy
- sudo cp -a /dev/urandom /dev/random
2015-02-19 19:36:43 +01:00
script:
2016-02-15 04:27:10 +01:00
- cmake .. -DBUILD_TESTING=on -DCMAKE_BUILD_TYPE=Debug
- make -j$NUMCORES
- ./test/gitversion/gitversion-test
- ./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
2016-02-11 14:44:28 +01:00
- ./test/blockstore/blockstore-test
2016-02-11 14:50:18 +01:00
- ./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
2016-02-11 12:14:44 +01:00
after_script:
- rm run_with_fuse.sh