diff options
author | Lev Stipakov | 2019-11-07 23:29:34 +0200 |
---|---|---|
committer | Gert Doering | 2019-11-08 10:12:29 +0100 |
commit | 633fe5185d063a1d1a1bce4170b283ab4273d95d (patch) | |
tree | 0ffc2b48ce0a496ff36ab9549249a4f8c44e35bb /.travis | |
parent | def3f32d216d16c3bf5a203a2162256203686a34 (diff) | |
download | openvpn-633fe5185d063a1d1a1bce4170b283ab4273d95d.zip openvpn-633fe5185d063a1d1a1bce4170b283ab4273d95d.tar.gz |
travis: add Visual Studio build
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1573162174-28461-1-git-send-email-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19035.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/build-check.sh | 5 | ||||
-rwxr-xr-x | .travis/build-deps.sh | 9 | ||||
-rwxr-xr-x | .travis/run-build-deps.sh | 10 |
3 files changed, 24 insertions, 0 deletions
diff --git a/.travis/build-check.sh b/.travis/build-check.sh index 74f3ae1..d2d2e8a 100755 --- a/.travis/build-check.sh +++ b/.travis/build-check.sh @@ -1,6 +1,11 @@ #!/bin/sh set -eux +if [ "${TRAVIS_OS_NAME}" = "windows" ]; then + PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/":$PATH + MSBuild.exe openvpn.sln //p:Platform=x64 && exit 0 +fi + if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH:-}" fi diff --git a/.travis/build-deps.sh b/.travis/build-deps.sh index 391b35e..724ff30 100755 --- a/.travis/build-deps.sh +++ b/.travis/build-deps.sh @@ -1,6 +1,15 @@ #!/bin/sh set -eux +if [ "${TRAVIS_OS_NAME}" = "windows" ]; then + choco install strawberryperl nasm + cd .. + git clone https://github.com/openvpn/openvpn-build.git + cd openvpn-build + PATH="/c/Strawberry/perl/bin:":$PATH MODE=DEPS msvc/build.bat + exit 0 +fi + # Set defaults PREFIX="${PREFIX:-${HOME}/opt}" diff --git a/.travis/run-build-deps.sh b/.travis/run-build-deps.sh new file mode 100755 index 0000000..b8eb41c --- /dev/null +++ b/.travis/run-build-deps.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eux + +if [ "${TRAVIS_OS_NAME}" = "windows" ]; then + # for windows we need to print output since openssl build + # might take more than 10 minutes, which causes build abort + .travis/build-deps.sh +else + .travis/build-deps.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1) +fi |