54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
os:
|
|
- linux
|
|
- osx
|
|
matrix:
|
|
allow_failures:
|
|
- os: osx
|
|
- compiler: clang
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libcrypto++-dev
|
|
- libfuse-dev
|
|
install:
|
|
# Install boost
|
|
- wget -O boost.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download
|
|
- tar -xf boost.tar.bz2
|
|
- cd boost_1_56_0
|
|
# TODO We should use clang as toolchain for building boost when clang is used for building our code
|
|
- ./bootstrap.sh --with-libraries=filesystem,thread,chrono,program_options
|
|
- sudo ./b2 -d0 install
|
|
- cd ..
|
|
- sudo rm -rf boost.tar.bz2 boost_1_56_0
|
|
# 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
|
|
# Install cmake >= 3.3
|
|
- wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz
|
|
&& tar -xf cmake-3.3.2-Linux-x86_64.tar.gz
|
|
&& sudo cp -R cmake-3.3.2-Linux-x86_64/* /usr
|
|
&& rm -r cmake-3.3.2-Linux-x86_64 cmake-3.3.2-Linux-x86_64.tar.gz
|
|
- 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 ..
|
|
- make -j2
|
|
- make package -j2
|
|
- ./test/cpp-utils/cpp-utils-test
|
|
- ./run_with_fuse.sh ./test/fspp/fspp-test
|
|
- ./test/parallelaccessstore/parallelaccessstore-test
|
|
- ./test/blockstore/blockstore-test
|
|
- ./test/blobstore/blobstore-test
|
|
- ./test/cryfs/cryfs-test
|
|
after_script:
|
|
- rm run_with_fuse.sh
|