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

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"