.travis.yml revision 11597b8f
1language: cpp
2compiler:
3  - clang
4  - gcc
5sudo: false
6addons:
7  apt:
8    sources:
9    - ubuntu-toolchain-r-test
10    - llvm-toolchain-precise-3.8
11    - george-edison55-precise-backports
12    packages:
13    - g++-5
14    - clang-3.8
15    - libev-dev
16    - libssl-dev
17    - cmake
18    - cmake-data
19before_install:
20  - $CC --version
21  - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; else export CXX="clang++-3.8" CC="clang-3.8"; fi
22  - $CC --version
23  - cmake --version
24before_script:
25  # First build external lib
26  - git clone https://boringssl.googlesource.com/boringssl
27  - cd boringssl
28  - git checkout chromium-stable
29  - cmake .
30  - make -j$(nproc)
31  - BORINGSSL_SOURCE=$PWD
32  - mkdir -p $HOME/tmp/boringssl-libs
33  - cd $HOME/tmp/boringssl-libs
34  - ln -s $BORINGSSL_SOURCE/ssl/libssl.a
35  - ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a
36  - cd ..
37  #- ./ci/build_boringssl.sh
38  # configure lsquic
39  - echo $BORINGSSL_SOURCE
40  - cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/tmp/boringssl-libs .
41script:
42  # Now build lsquic-client
43  - make
44  - make test
45