summaryrefslogtreecommitdiff
path: root/.travis/epoxy-ci-osx.sh
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-06-04 11:27:48 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-06-04 12:30:11 +0100
commitdadf83df009f6f6a77af1c74c5211b1420abc98c (patch)
tree72bc5e6062b7352d60c238b272b4160846831059 /.travis/epoxy-ci-osx.sh
parent3824efc25c91e906bdfd4ab01bda431c984a859b (diff)
downloadlibepoxy-dadf83df009f6f6a77af1c74c5211b1420abc98c.tar.gz
ci: Dump the test log on failure
We need to see what failed, as Meson's test harness will just show the result.
Diffstat (limited to '.travis/epoxy-ci-osx.sh')
-rwxr-xr-x.travis/epoxy-ci-osx.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/.travis/epoxy-ci-osx.sh b/.travis/epoxy-ci-osx.sh
index 3e4021d..1a062a1 100755
--- a/.travis/epoxy-ci-osx.sh
+++ b/.travis/epoxy-ci-osx.sh
@@ -1,5 +1,13 @@
#!/bin/sh
+dump_log_and_quit() {
+ local exitcode=$1
+
+ cat meson-logs/testlog.txt
+
+ exit $exitcode
+}
+
export SDKROOT=$( xcodebuild -version -sdk macosx Path )
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
@@ -12,8 +20,8 @@ builddir=$( mktemp -d build_XXXXXX )
meson ${BUILDOPTS} $builddir $srcdir || exit $?
cd $builddir
+
ninja || exit $?
-meson test || exit $?
-cd ..
+meson test || dump_log_and_quit $?
-rm -rf $builddir
+cd ..