From 63a6884f9eac107c768ce8464a4f07addf356995 Mon Sep 17 00:00:00 2001 From: Andy Keep Date: Mon, 15 Jan 2018 22:52:45 -0500 Subject: [PATCH] More complete build script with checking. original commit: e5a95095ae636475c7e44255d083012855168fcd --- .travis/dobuild.sh | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.travis/dobuild.sh b/.travis/dobuild.sh index a493a5aa9e..066ab1611e 100755 --- a/.travis/dobuild.sh +++ b/.travis/dobuild.sh @@ -1,8 +1,24 @@ -#!/bin/bash -e +#!/bin/bash ./configure -m=$TARGET_MACHINE +exitcode=$? +if [ $exitcode -ne 0 ] ; then + echo "Failed: configure step" + exit $exitcode +fi make +exitcode=$? +if [ $exitcode -ne 0 ] ; then + echo "Failed: make step" + exit $exitcode +fi ( cd ${TARGET_MACHINE}/mats && make partialx 2>&1 ) | tee Make.out | grep '^matting ' -echo "exit code: $?" -cat ${TARGET_MACHINE}/mats/summary -diff .travis/summary ${TARGET_MACHINE}/mats/summary +diff -q .travis/summary ${TARGET_MACHINE}/mats/summary +exitcode=$? + +if [ $exitcode -ne 0 ] ; then + echo "Failed: testing step" + echo "mats summary:" + cat ${TARGET_MACHINE}/mats/summary + exit $exitcode +fi