Skip to content
Snippets Groups Projects
Commit c1882146 authored by Alexis La Goutte's avatar Alexis La Goutte
Browse files

Travis: Add matrix (with BoringSSL or OpenSSL)

parent 1b11dd27
Branches
No related merge requests found
language: cpp language: cpp
env:
matrix:
- SSL_LIB=boringssl
- SSL_LIB=openssl
compiler: compiler:
- clang - clang
- gcc - gcc
...@@ -29,18 +33,13 @@ before_install: ...@@ -29,18 +33,13 @@ before_install:
- $CC --version - $CC --version
- cmake --version - cmake --version
before_script: before_script:
# First build boringssl # First build external lib
- git clone https://boringssl.googlesource.com/boringssl - if [ "$SSL_LIB" = "boringssl" ]; then ./ci/build_boringssl.sh; fi
- cd boringssl - if [ "$SSL_LIB" = "openssl" ]; then ./ci/build_openssl.sh; fi
- mkdir build
- cd build
- cmake ..
- make
- cd ../../
# configure ngtcp2 # configure ngtcp2
- autoreconf -i - autoreconf -i
- ./configure --enable-werror OPENSSL_CFLAGS=-I$PWD/boringssl/include OPENSSL_LIBS="-L$PWD/boringssl/build/ssl -L$PWD/boringssl/build/crypto -lssl -lcrypto -pthread" - if [ "$SSL_LIB" = "boringssl" ]; then ./configure --enable-werror OPENSSL_CFLAGS=-I$PWD/../boringssl/include OPENSSL_LIBS="-L$PWD/../boringssl/build/ssl -L$PWD/../boringssl/build/crypto -lssl -lcrypto -pthread"; fi
- if [ "$SSL_LIB" = "openssl" ]; then ./configure --enable-werror PKG_CONFIG_PATH=$PWD/../openssl/build/lib/pkgconfig LDFLAGS="-Wl,-rpath,$PWD/openssl/build/lib"; fi
script: script:
# Now build ngtcp2 # Now build ngtcp2
- make check - make check
#!/bin/sh
#build last boringssl master (for Travis)
cd ..
git clone --depth 1 https://boringssl.googlesource.com/boringssl
cd boringssl
mkdir build
cd build
cmake ..
make -j$(nproc)
cd ../../
#!/bin/sh
#build last openssl master (for Travis)
cd ..
git clone --depth 1 https://github.com/openssl/openssl
cd openssl
./Configure enable-tls1_3 --prefix=$PWD/build linux-x86_64
make -j$(nproc)
make install_sw
cd ..
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment