subsurface/scripts/windows-container/travisbuild.sh
Dirk Hohndel 450f654063 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 <dirk@hohndel.org>
2018-10-07 14:00:45 -07:00

13 lines
329 B
Bash

#!/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