From: Erwin Janssen Date: Thu, 8 Sep 2016 16:03:32 +0000 (+0200) Subject: Added error checking to ci/build_and_test.sh X-Git-Tag: untagged-4431b9bde391f1b69fe5~6^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93856a18194642170e6c9a727a9fef187294ac43;p=graphviz Added error checking to ci/build_and_test.sh Instead of executing all command even if some fail, stop when a command fails and print an error message. --- diff --git a/ci/build_and_test.sh b/ci/build_and_test.sh index accaa5eab..9f6197de8 100755 --- a/ci/build_and_test.sh +++ b/ci/build_and_test.sh @@ -2,8 +2,37 @@ # Run this script from the root source directory -./autogen.sh -make -make install -make check -make dist +if ./autogen.sh ; then + echo "autogen.sh succesfull." +else + echo "Error: autogen.sh failed." >&2 + exit 1 +fi + +if make ; then + echo "make succesfull." +else + echo "Error: make failed." >&2 + exit 1 +fi + +if make install ; then + echo "make install succesfull." +else + echo "Error: make install failed." >&2 + exit 1 +fi + +if make check ; then + echo "make check succesfull." +else + echo "Error: make check failed." >&2 + exit 1 +fi + +if make dist ; then + echo "make dist succesfull." +else + echo "Error: make dist failed." >&2 + exit 1 +fi