libcryfs/.travis.yml

54 lines
2.1 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
2015-02-19 19:36:43 +01:00
compiler:
- gcc
2015-02-20 02:02:35 +01:00
install:
2015-02-20 20:45:02 +01:00
- wget https://raw.githubusercontent.com/smessmer/travis-utils/master/update_gcc_version.sh
&& chmod +x update_gcc_version.sh
&& ./update_gcc_version.sh 4.8
2015-02-20 20:45:02 +01:00
&& rm update_gcc_version.sh
2015-02-20 02:02:35 +01:00
- sudo apt-get install libfuse-dev
2015-10-28 10:02:58 +01:00
# This is needed for packaging 7z distribution packages
- sudo apt-get install software-properties-common && sudo add-apt-repository ppa:george-edison55/precise-backports -y && sudo apt-get update
- sudo apt-get install cmake cmake-data rpm
# CryFS needs cmake >= 3.3, install it.
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
&& rm -r cmake-3.3.2-Linux-x64_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
before_script:
- wget https://raw.githubusercontent.com/smessmer/travis-utils/master/setup_biicode_project.sh
&& chmod +x setup_biicode_project.sh
&& ./setup_biicode_project.sh
&& rm setup_biicode_project.sh
2015-02-19 19:36:43 +01:00
script:
#The configure line is needed as a workaround for the following link, otherwise we wouldn't need "bii configure" at all because "bii build" calls it: http://forum.biicode.com/t/error-could-not-find-the-following-static-boost-libraries-boost-thread/374
- bii cpp:configure || bii cpp:configure
# Build cryfs executable
2015-03-07 01:50:47 +01:00
- bii cpp:build -- -j2
# Build and run test cases
2015-05-04 19:47:12 +02:00
- bii cpp:build --target messmer_cryfs_test_main -- -j2
2015-05-04 17:36:15 +02:00
- wget https://raw.githubusercontent.com/smessmer/travis-utils/master/run_with_fuse.sh
&& chmod +x run_with_fuse.sh
&& ./run_with_fuse.sh "./bin/messmer_cryfs_test_main"
&& rm run_with_fuse.sh
2015-11-27 18:05:16 +01:00
# Make distribution packages
- bii clean
- bii cpp:configure -D CMAKE_BUILD_TYPE=Release
2015-11-27 18:37:34 +01:00
- bii build -- -j2
2015-11-27 18:05:16 +01:00
- cd bii/build/messmer_cryfs && make package && cd ../../..
after_success:
- bii user ${BII_USERNAME} -p ${BII_PASSWORD}
- bii publish
#deploy:
# provider: biicode
# user: ${BII_USERNAME}
# password:
# secure: ${BII_PASSWORD}
# on:
# branch: develop
2015-02-19 19:36:43 +01:00