From 8deabecd4832b25ebb13e2db377bedffb32c000c Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 13 Apr 2019 17:20:02 -0400 Subject: [PATCH] fail faster --- firmware/clean_compile_two_versions.bat | 13 +++++++++---- .../build_current_bundle.bat | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/firmware/clean_compile_two_versions.bat b/firmware/clean_compile_two_versions.bat index 6dfeb4ad7c..619cd8aa63 100644 --- a/firmware/clean_compile_two_versions.bat +++ b/firmware/clean_compile_two_versions.bat @@ -3,18 +3,23 @@ rd /s /q deliver mkdir deliver call clean.bat -make +make -j4 cp build\rusefi.elf deliver\rusefi_debug.elf cp build\rusefi.bin deliver\rusefi_debug.bin cp build\rusefi.hex deliver\rusefi_debug.hex -echo Debug compilation results +echo Debug compilation results 1/2 ls -l build +if not exist deliver/rusefi_debug.hex echo FAILED to compile DEBUG +if not exist deliver/rusefi_debug.hex exit -1 + call clean.bat -make DEBUG_LEVEL_OPT='-O2' EXTRA_PARAMS='-DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_TRACE=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE' +make -j4 DEBUG_LEVEL_OPT='-O2' EXTRA_PARAMS='-DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_TRACE=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE' cp build\rusefi.elf deliver\rusefi_release.elf cp build\rusefi.bin deliver\rusefi_release.bin cp build\rusefi.hex deliver\rusefi_release.hex -echo Release compilation results +echo Release compilation results 2/2 ls -l build +if not exist deliver/rusefi_release.hex echo FAILED to compile RELEASE +if not exist deliver/rusefi_release.hex exit -1 diff --git a/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat b/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat index 4fc3ddcb57..c0ca1b6c17 100644 --- a/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat +++ b/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat @@ -41,10 +41,10 @@ git submodule update --init call update_version.bat call clean_compile_two_versions.bat -if not exist deliver/rusefi_release.hex echo FAILED to compile RELEASE +if not exist deliver/rusefi_release.hex echo Just to confirm - FAILED to compile RELEASE if not exist deliver/rusefi_release.hex exit -1 -if not exist deliver/rusefi_debug.hex echo FAILED to compile DEBUG +if not exist deliver/rusefi_debug.hex echo Just to confirm - FAILED to compile DEBUG if not exist deliver/rusefi_debug.hex exit -1 ..\misc\hex2dfu\HEX2DFU.exe deliver/rusefi_release.hex -out deliver/rusefi_release.dfu