From 450f654063cbbffe7b58e0b785ef8970a0be41ea Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 6 Oct 2018 10:11:15 +0200 Subject: Travis: add Windows build in a container I expect this to become the default way to test Windows builds and create installers on Travis. The idea is that instead of downloading the pre-built MXE binaries we might as well use a container that has all this installed and can be used locally to test if things fail on Travis; which will allow us to have the exact same environment for testing locally as runs on Travis. At this point the container used is way too big - more effort needs to be spent on shrinking it. Right now this only deals with Subsurface and not with smtk2ssrf. Signed-off-by: Dirk Hohndel --- scripts/windows-container/travisbuild.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/windows-container/travisbuild.sh (limited to 'scripts/windows-container/travisbuild.sh') diff --git a/scripts/windows-container/travisbuild.sh b/scripts/windows-container/travisbuild.sh new file mode 100644 index 000000000..50f9df42b --- /dev/null +++ b/scripts/windows-container/travisbuild.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# this is run to actually trigger the creation of the Windows installer +# inside the container + +set -x +set -e + +docker exec -t builder bash subsurface/scripts/windows-container/in-container-build.sh 2>&1 | tee build.log + +# fail the build if we didn't create the target binary +grep "Built target installer" build.log + -- cgit v1.2.3-70-g09d2