From ac8cc230ed3d74726130c2c01ec9c7f70eace526 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Sat, 31 Aug 2019 22:53:42 -0600 Subject: [PATCH] Added Exit on fail option to travis task run --- .travis/common.sh | 4 +++- .travis/script.sh | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis/common.sh b/.travis/common.sh index 28d3cb3f9..d5a157049 100644 --- a/.travis/common.sh +++ b/.travis/common.sh @@ -15,6 +15,7 @@ export -f travis_time_start export -f travis_time_finish function start_section() { + $SPACER travis_fold start "$1" travis_time_start echo -e "${PURPLE}OpenFPGA${NC}: - $2${NC}" @@ -25,6 +26,7 @@ function end_section() { echo -e "${GRAY}-------------------------------------------------------------------${NC}" travis_time_finish travis_fold end "$1" + $SPACER } # For Mac OS, we use g++ and gcc as default compilers @@ -35,7 +37,7 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then # export PATH="/usr/local/opt/qt/bin:$PATH" # Install header files in Mojave, if not gcc-4.9 cannot spot stdio.h sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / -else +else # For linux, we use g++-8 and gcc-8 as default compilers export CC=gcc-8 export CXX=g++-8 diff --git a/.travis/script.sh b/.travis/script.sh index 61f53d776..10cf00931 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -3,10 +3,7 @@ source .travis/common.sh set -e -$SPACER - start_section "OpenFPGA.build" "${GREEN}Building..${NC}" - mkdir build cd build @@ -17,9 +14,9 @@ else fi make -j16 end_section "OpenFPGA.build" -$SPACER + start_section "OpenFPGA.TaskTun" "${GREEN}..Running_Regression..${NC}" cd - -python3 openfpga_flow/scripts/run_fpga_task.py blif_vpr_flow +python3 openfpga_flow/scripts/run_fpga_task.py blif_vpr_flow --exit_on_fail end_section "OpenFPGA.TaskTun"