BUILD: travis-ci improvements

full list:

update LibreSSL to 2.9.2
speed up build by using "make -j3"
cache BoringSSL checkout
build prometeus exporter
add basic cygwin build
add USE_TFO=1, USE_SYSTEMD=1 to linux builds
This commit is contained in:
Ilya Shipitsin
2019-06-05 02:16:51 +05:00
committed by Willy Tarreau
parent 839af57c85
commit a088d3dea9
2 changed files with 25 additions and 8 deletions

View File

@@ -56,6 +56,17 @@ build_libressl () {
fi
}
download_boringssl () {
if [ ! -d "download-cache/boringssl" ]; then
git clone --depth=1 https://boringssl.googlesource.com/boringssl download-cache/boringssl
else
(
cd download-cache/boringssl
git pull
)
fi
}
if [ ! -z ${LIBRESSL_VERSION+x} ]; then
download_libressl
build_libressl
@@ -68,8 +79,9 @@ fi
if [ ! -z ${BORINGSSL+x} ]; then
(
git clone --depth=1 https://boringssl.googlesource.com/boringssl
cd boringssl
download_boringssl
cd download-cache/boringssl
if [ -d build ]; then rm -rf build; fi
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=1 ..
@@ -82,7 +94,7 @@ if [ ! -z ${BORINGSSL+x} ]; then
cp crypto/libcrypto.so ssl/libssl.so ${SSL_LIB}
mkdir -p ${SSL_INC}
mv ../include/* ${SSL_INC}
cp -r ../include/* ${SSL_INC}
)
fi