mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-08-24 21:43:00 +03:00
travis-ci: add libressl build, make builds parallel, remove not needed brew
This commit is contained in:
parent
da13915d1e
commit
3e042e093b
23
.ci/build-libressl.sh
Executable file
23
.ci/build-libressl.sh
Executable 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
|
@ -13,7 +13,8 @@ build_openssl () {
|
||||
tar zxf "download-cache/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
cd "openssl-${OPENSSL_VERSION}/"
|
||||
./config shared --prefix="${OPENSSL_INSTALL_DIR}" --openssldir="${OPENSSL_INSTALL_DIR}" -DPURIFY
|
||||
make all install_sw
|
||||
make -j $(nproc || sysctl -n hw.ncpu || echo 4) all
|
||||
make install_sw
|
||||
echo "${OPENSSL_VERSION}" > "${OPENSSL_INSTALL_DIR}/.openssl-version"
|
||||
fi
|
||||
}
|
||||
|
12
.travis.yml
12
.travis.yml
@ -20,6 +20,11 @@ matrix:
|
||||
- env: OPENSSL_VERSION="1.1.0f"
|
||||
os: linux
|
||||
compiler: clang
|
||||
- env: LIBRESSL_VERSION="2.8.2"
|
||||
os: linux
|
||||
compiler: gcc
|
||||
before_install:
|
||||
- bash .ci/build-libressl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
||||
- env: LABEL="check stb files"
|
||||
os: linux
|
||||
language: csharp
|
||||
@ -50,11 +55,8 @@ matrix:
|
||||
- true
|
||||
- os: osx
|
||||
compiler: clang
|
||||
cache:
|
||||
directories:
|
||||
- ${HOME}/Library/Caches/Homebrew
|
||||
before_install:
|
||||
- brew update
|
||||
- true
|
||||
script:
|
||||
- ./configure
|
||||
- make -C tmp
|
||||
@ -78,7 +80,7 @@ script:
|
||||
- export CFLAGS="-I${HOME}/opt/include"
|
||||
- export LDFLAGS="-L${HOME}/opt/lib"
|
||||
- ./configure
|
||||
- make -C tmp
|
||||
- make -j $(nproc || sysctl -n hw.ncpu || echo 4) -C tmp
|
||||
- ldd build/vpnserver
|
||||
- if [ "${BUILD_DEB}" = "1" ]; then make package -C tmp; fi
|
||||
- .ci/memory-leak-test.sh
|
||||
|
Loading…
Reference in New Issue
Block a user