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

travis-ci: split openssl into 1.0.2, 1.1.0 matrix (#477)

This commit is contained in:
Ilya Shipitsin
2018-04-10 02:16:38 +05:00
committed by Moataz Elmasry
parent fcaaab0d8e
commit 26f3ebc059
4 changed files with 59 additions and 9 deletions

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

@ -0,0 +1,23 @@
#!/bin/sh
set -eux
download_openssl () {
if [ ! -f "download-cache/openssl-${OPENSSL_VERSION}.tar.gz" ]; then
wget -P download-cache/ \
"https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"
fi
}
build_openssl () {
if [ "$(cat ${PREFIX}/.openssl-version)" != "${OPENSSL_VERSION}" ]; then
tar zxf "download-cache/openssl-${OPENSSL_VERSION}.tar.gz"
cd "openssl-${OPENSSL_VERSION}/"
./config shared --prefix="${PREFIX}" --openssldir="${PREFIX}" -DPURIFY
make all install_sw
echo "${OPENSSL_VERSION}" > "${PREFIX}/.openssl-version"
fi
}
download_openssl
build_openssl