libcryfs/.travis.yml

56 lines
1.6 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: osx
2016-02-11 04:28:16 +01:00
- 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
2016-02-12 09:50:44 +01:00
# Needed to build rpm packages
- rpmbuild
2015-02-20 02:02:35 +01:00
install:
2016-02-11 16:39:42 +01:00
# Install boost
2016-02-11 03:16:18 +01:00
- 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
2016-02-11 04:28:16 +01:00
# 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
2016-02-11 03:16:18 +01:00
- sudo ./b2 -d0 install
- cd ..
2016-02-11 04:28:16 +01:00
- sudo rm -rf boost.tar.bz2 boost_1_56_0
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
2016-02-11 16:39:42 +01:00
# Install cmake >= 3.3
2016-01-15 15:13:28 +01:00
- 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
2016-01-15 15:22:14 +01:00
&& sudo cp -R cmake-3.3.2-Linux-x86_64/* /usr
2016-01-15 23:38:44 +01:00
&& rm -r cmake-3.3.2-Linux-x86_64 cmake-3.3.2-Linux-x86_64.tar.gz
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-11 03:07:10 +01:00
- cmake ..
- make -j2
2016-02-11 16:39:42 +01:00
- make package -j2
- ./test/cpp-utils/cpp-utils-test
- ./run_with_fuse.sh ./test/fspp/fspp-test
- ./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
2016-02-11 20:32:42 +01:00
- ./test/cryfs/cryfs-test
2016-02-11 12:14:44 +01:00
after_script:
- rm run_with_fuse.sh