1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-08 00:34:57 +03:00

travis-ci: add libressl build, make builds parallel, remove not needed brew

This commit is contained in:
Ilya Shipitsin
2018-11-10 12:32:21 +05:00
parent da13915d1e
commit 3e042e093b
3 changed files with 32 additions and 6 deletions

23
.ci/build-libressl.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -eux
download_libressl () {
if [[ ! -f "download-cache/librenssl-${LIBRESSL_VERSION}.tar.gz" ]]; then
wget -P download-cache/ \
"https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz"
fi
}
build_libressl () {
if [[ "$(cat ${OPENSSL_INSTALL_DIR}/.openssl-version)" != "${LIBRESSL_VERSION}" ]]; then
tar zxf "download-cache/libressl-${LIBRESSL_VERSION}.tar.gz"
cd "libressl-${LIBRESSL_VERSION}/"
./configure --prefix="${OPENSSL_INSTALL_DIR}"
make -j $(nproc || sysctl -n hw.ncpu || echo 4) all
make install
echo "${LIBRESSL_VERSION}" > "${OPENSSL_INSTALL_DIR}/.openssl-version"
fi
}
download_libressl
build_libressl