From: Ilya Shipitsin Date: Wed, 8 May 2019 20:15:59 +0000 (+0500) Subject: BUILD: add BoringSSL to travis-ci build matrix X-Git-Tag: v2.0-dev3~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d20afe6fe5106716b97771c483395b9b51a04a;p=thirdparty%2Fhaproxy.git BUILD: add BoringSSL to travis-ci build matrix --- diff --git a/.travis.yml b/.travis.yml index f9a13586f5..c00725d80f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,9 @@ matrix: - os: linux compiler: gcc env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5 + - os: linux + compiler: gcc + env: TARGET=linux2628 BORINGSSL=yes - os: linux compiler: clang env: TARGET=linux2628 FLAGS= diff --git a/scripts/build-ssl.sh b/scripts/build-ssl.sh index a8863ed3a5..812e4eb0eb 100755 --- a/scripts/build-ssl.sh +++ b/scripts/build-ssl.sh @@ -66,4 +66,23 @@ if [ ! -z ${OPENSSL_VERSION+x} ]; then build_openssl fi +if [ ! -z ${BORINGSSL+x} ]; then + ( + git clone --depth=1 https://boringssl.googlesource.com/boringssl + cd boringssl + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=1 .. + make + + rm -rf ${SSL_LIB} || exit 0 + rm -rf ${SSL_INC} || exit 0 + + mkdir -p ${SSL_LIB} + cp crypto/libcrypto.so ssl/libssl.so ${SSL_LIB} + + mkdir -p ${SSL_INC} + mv ../include/* ${SSL_INC} + ) +fi