summaryrefslogtreecommitdiff
path: root/.travis/build-check.sh
diff options
context:
space:
mode:
authorBernhard Schmidt <berni@debian.org>2020-08-15 21:29:54 +0200
committerBernhard Schmidt <berni@debian.org>2020-08-15 21:29:54 +0200
commit7c229d538824cb679351220ad8911f7b2daa7c23 (patch)
tree5c4d64b60da9018c7db3a9335a9787d326beade3 /.travis/build-check.sh
parentd3986a312f5fbcfd0e78e6b147eef419fb4e5f54 (diff)
parent1079962e4c06f88a54e50d997c1b7e84303d30b4 (diff)
Update upstream source from tag 'upstream/2.5_beta1'
Update to upstream version '2.5~beta1' with Debian dir d53f9a482ac24eb491a294b26c24bb1d87afad24
Diffstat (limited to '.travis/build-check.sh')
-rwxr-xr-x.travis/build-check.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis/build-check.sh b/.travis/build-check.sh
new file mode 100755
index 0000000..4e1b724
--- /dev/null
+++ b/.travis/build-check.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -eux
+
+if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
+ PATH="/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/":$PATH
+ MSBuild.exe openvpn.sln //p:Platform=x64 && exit 0
+fi
+
+autoreconf -vi
+
+if [ -z ${CHOST+x} ]; then
+ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
+ export EXTRA_CONFIG="${EXTRA_CONFIG:-} --enable-werror"
+ fi
+ ./configure --with-crypto-library="${SSLLIB}" ${EXTRA_CONFIG:-} || (cat config.log && exit 1)
+ make LDFLAGS="-Wl,-rpath,${PREFIX}/lib" -j$JOBS
+ src/openvpn/openvpn --version || true
+ if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
+ ldd src/openvpn/openvpn;
+ fi
+ if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L src/openvpn/openvpn; fi
+ make check
+ ${EXTRA_SCRIPT:-}
+else
+ export TAP_CFLAGS="-I${PWD}/tap-windows-${TAP_WINDOWS_VERSION}/include"
+ export LZO_CFLAGS="-I${PREFIX}/include"
+ export LZO_LIBS="-L${PREFIX}/lib -llzo2"
+ export PKCS11_HELPER_LIBS="-L${PREFIX}/lib -lpkcs11-helper"
+ export PKCS11_HELPER_CFLAGS="-I${PREFIX}/include"
+ ./configure --with-crypto-library="${SSLLIB}" --host=${CHOST} --build=x86_64-pc-linux-gnu --enable-pkcs11 --disable-plugins || (cat config.log && exit 1)
+ make -j${JOBS}
+fi