Add .travis CI build

This commit is contained in:
Alexis La Goutte 2017-10-09 06:13:56 +00:00 committed by Dmitri Tikhonov
parent 560db45b8e
commit 42af697e82
2 changed files with 47 additions and 0 deletions

31
.travis.yml Normal file
View file

@ -0,0 +1,31 @@
language: cpp
compiler:
- clang
- gcc
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
- george-edison55-precise-backports
packages:
- g++-5
- clang-3.8
- libev-dev
- cmake
- cmake-data
before_install:
- $CC --version
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; else export CXX="clang++-3.8" CC="clang-3.8"; fi
- $CC --version
- cmake --version
before_script:
# First build external lib
- ./ci/build_boringssl.sh
# configure lsquic
- cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
script:
# Now build lsquic-client
- make
- make test

16
ci/build_boringssl.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
#build last boringssl master (for Travis)
cd ..
git clone --depth 1 https://boringssl.googlesource.com/boringssl
cd boringssl
git checkout chromium-stable
mkdir build
cd build
cmake ..
make -j$(nproc)
BORINGSSL_SOURCE=$PWD
mkdir -p $HOME/tmp/boringssl-libs
cd $HOME/tmp/boringssl-libs
ln -s $BORINGSSL_SOURCE/ssl/libssl.a
ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a