From 049cae841df1b5bf61f99b80900f03fb7fdac630 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 3 Feb 2019 09:36:44 +0100 Subject: [PATCH] More cleanups to travis.sh - run all test even if some fail Try to get maximum on information in one build run --- travis.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/travis.sh b/travis.sh index 0aa68a22..a1bff5e5 100755 --- a/travis.sh +++ b/travis.sh @@ -1,5 +1,7 @@ #!/bin/bash +RETVAL=0 + cd contrib/ports/unix/check #build and run unit tests @@ -10,8 +12,8 @@ make check -j 4 ERR=$? echo Return value from unittests: $ERR if [ $ERR != 0 ]; then - echo "unittests build failed" - exit 33 + echo "++++++++++++++++++++++++++++++ unittests build failed" + RETVAL=1 fi # Build example_app using cmake, this tests the CMake toolchain @@ -26,8 +28,8 @@ cd build ERR=$? echo Return value from cmake generate: $ERR if [ $ERR != 0 ]; then - echo "cmake GENERATE failed" - exit 33 + echo "++++++++++++++++++++++++++++++ cmake GENERATE failed" + RETVAL=1 fi # Build CMake @@ -35,8 +37,8 @@ fi ERR=$? echo Return value from build: $ERR if [ $ERR != 0 ]; then - echo "cmake build failed" - exit 33 + echo "++++++++++++++++++++++++++++++ cmake build failed" + RETVAL=1 fi # Build docs @@ -44,8 +46,8 @@ fi ERR=$? echo Return value from lwipdocs: $ERR if [ $ERR != 0 ]; then - echo "lwIP documentation failed" - exit 33 + echo "++++++++++++++++++++++++++++++ lwIP documentation failed" + RETVAL=1 fi # Test different lwipopts.h @@ -55,6 +57,9 @@ cd contrib/ports/unix/example_app ERR=$? echo Return value from iteropts: $ERR if [ $ERR != 0 ]; then - echo "lwIP iteropts test failed" - exit 33 + echo "++++++++++++++++++++++++++++++ lwIP iteropts test failed" + RETVAL=1 fi + +echo Exit value: $RETVAL +exit $RETVAL