mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
travis-ci: split openssl into 1.0.2, 1.1.0 matrix (#477)
This commit is contained in:
parent
fcaaab0d8e
commit
26f3ebc059
23
.ci/build-openssl.sh
Executable file
23
.ci/build-openssl.sh
Executable 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
|
29
.travis.yml
29
.travis.yml
@ -9,9 +9,36 @@ addons:
|
|||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
compiler: [ gcc, clang ]
|
env:
|
||||||
|
global:
|
||||||
|
- PREFIX="${HOME}/opt"
|
||||||
|
- CFLAGS="-I${PREFIX}/include"
|
||||||
|
- LDFLAGS="-L${PREFIX}/lib"
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- env: OPENSSL_VERSION="1.0.2o"
|
||||||
|
os: linux
|
||||||
|
compiler: gcc
|
||||||
|
- env: OPENSSL_VERSION="1.1.0f"
|
||||||
|
os: linux
|
||||||
|
compiler: gcc
|
||||||
|
- env: OPENSSL_VERSION="1.0.2o"
|
||||||
|
os: linux
|
||||||
|
compiler: clang
|
||||||
|
- env: OPENSSL_VERSION="1.1.0f"
|
||||||
|
os: linux
|
||||||
|
compiler: clang
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- download-cache
|
||||||
|
- ${HOME}/opt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
||||||
|
- export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}"
|
||||||
- ./configure
|
- ./configure
|
||||||
- make
|
- make
|
||||||
|
- ldd bin/vpnserver/vpnserver
|
||||||
- dh build-arch
|
- dh build-arch
|
||||||
|
@ -25,13 +25,13 @@
|
|||||||
|
|
||||||
#CC=gcc
|
#CC=gcc
|
||||||
|
|
||||||
OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char
|
OPTIONS_COMPILE_DEBUG=$(CFLAGS) -D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char
|
||||||
|
|
||||||
OPTIONS_LINK_DEBUG=-g -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
OPTIONS_LINK_DEBUG=$(LDFLAGS) -g -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
||||||
|
|
||||||
OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char
|
OPTIONS_COMPILE_RELEASE=$(CFLAGS) -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char
|
||||||
|
|
||||||
OPTIONS_LINK_RELEASE=-O2 -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
OPTIONS_LINK_RELEASE=$(LDFLAGS) -O2 -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
||||||
|
|
||||||
INSTALL_BINDIR=/usr/bin/
|
INSTALL_BINDIR=/usr/bin/
|
||||||
INSTALL_VPNSERVER_DIR=/usr/vpnserver/
|
INSTALL_VPNSERVER_DIR=/usr/vpnserver/
|
||||||
|
@ -31,13 +31,13 @@ else
|
|||||||
M64:=-m64
|
M64:=-m64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OPTIONS_COMPILE_DEBUG=-D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char $(M64)
|
OPTIONS_COMPILE_DEBUG=$(CFLAGS) -D_DEBUG -DDEBUG -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -g -fsigned-char $(M64)
|
||||||
|
|
||||||
OPTIONS_LINK_DEBUG=-g -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
OPTIONS_LINK_DEBUG=$(LDFLAGS) -g -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
||||||
|
|
||||||
OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char $(M64)
|
OPTIONS_COMPILE_RELEASE=$(CFLAGS) -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char $(M64)
|
||||||
|
|
||||||
OPTIONS_LINK_RELEASE=-O2 -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
OPTIONS_LINK_RELEASE=$(LDFLAGS) -O2 -fsigned-char $(M64) -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz
|
||||||
|
|
||||||
INSTALL_BINDIR=/usr/bin/
|
INSTALL_BINDIR=/usr/bin/
|
||||||
INSTALL_VPNSERVER_DIR=/usr/vpnserver/
|
INSTALL_VPNSERVER_DIR=/usr/vpnserver/
|
||||||
|
Loading…
Reference in New Issue
Block a user