]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: add BoringSSL to travis-ci build matrix
authorIlya Shipitsin <chipitsine@gmail.com>
Wed, 8 May 2019 20:15:59 +0000 (01:15 +0500)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2019 08:39:29 +0000 (10:39 +0200)
.travis.yml
scripts/build-ssl.sh

index f9a13586f5e1387e42baac7164cfdc76cb65ce78..c00725d80fb3a7ce8ad6e48eec692f71106aade1 100644 (file)
@@ -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=
index a8863ed3a56b09108c3e6df573e466f4823d6dc7..812e4eb0ebaaefb4c8aaca1e8a41b0105a4c305e 100755 (executable)
@@ -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