Added Exit on fail option to travis task run

This commit is contained in:
Ganesh Gore 2019-08-31 22:53:42 -06:00
parent be6b11304e
commit ac8cc230ed
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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"