2017-10-09 06:13:56 +00:00
|
|
|
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
|
2017-10-09 11:37:25 +00:00
|
|
|
- libssl-dev
|
2017-10-09 06:13:56 +00:00
|
|
|
- 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
|
2017-10-09 12:26:18 +00:00
|
|
|
- git clone --depth 1 https://boringssl.googlesource.com/boringssl
|
|
|
|
- cd boringssl
|
|
|
|
- git checkout chromium-stable
|
|
|
|
- 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
|
|
|
|
#- ./ci/build_boringssl.sh
|
2017-10-09 06:13:56 +00:00
|
|
|
# configure lsquic
|
2017-10-09 12:26:18 +00:00
|
|
|
- echo $BORINGSSL_SOURCE
|
|
|
|
- cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
|
|
|
|
script:
|
2017-10-09 06:13:56 +00:00
|
|
|
# Now build lsquic-client
|
|
|
|
- make
|
|
|
|
- make test
|