.travis.yml revision db8ac9ee
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    - libevent-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  - git clone https://boringssl.googlesource.com/boringssl
26  - cd boringssl
27  - git checkout chromium-stable
28  - cmake .
29  - make -j$(nproc)
30  - BORINGSSL_SOURCE=$PWD
31  - mkdir -p $HOME/boringssl-libs
32  - cd $HOME/boringssl-libs
33  - ln -s $BORINGSSL_SOURCE/ssl/libssl.a
34  - ln -s $BORINGSSL_SOURCE/crypto/libcrypto.a
35  - cd $TRAVIS_BUILD_DIR
36  - echo $BORINGSSL_SOURCE
37  - cmake -DBORINGSSL_INCLUDE=$BORINGSSL_SOURCE/include -DBORINGSSL_LIB=$HOME/boringssl-libs .
38script:
39  # Now build lsquic-client
40  - make
41  - make test
42