Jenkins refactoring
This commit is contained in:
parent
c34ba20aa0
commit
20fea6c46b
|
@ -0,0 +1,10 @@
|
||||||
|
java -version
|
||||||
|
|
||||||
|
echo Building java console
|
||||||
|
pwd
|
||||||
|
cd java_console
|
||||||
|
call ant clean clean_out_folder build
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
if not exist java_console_binary/rusefi_console.jar echo CONSOLE COMPILATION FAILED
|
||||||
|
echo java console looks good
|
|
@ -0,0 +1,11 @@
|
||||||
|
echo Building rusefi simulator
|
||||||
|
pwd
|
||||||
|
cd simulator
|
||||||
|
gcc -v
|
||||||
|
make -v
|
||||||
|
mkdir out
|
||||||
|
rm -rf build
|
||||||
|
rm -rf .dep
|
||||||
|
call compile.bat
|
||||||
|
cd ..
|
||||||
|
if not exist simulator/build/rusefi_simulator.exe echo SIMULATOR COMPILATION FAILED
|
|
@ -7,16 +7,8 @@ set FTP_SERVER=home451478433.1and1-data.host
|
||||||
|
|
||||||
echo build_current_bundle.bat: Hello rusEfi build full bundle
|
echo build_current_bundle.bat: Hello rusEfi build full bundle
|
||||||
|
|
||||||
java -version
|
|
||||||
|
|
||||||
echo %date% %time%
|
echo %date% %time%
|
||||||
|
|
||||||
echo build_current_bundle.bat: Building win32 functional tests
|
|
||||||
cd simulator
|
|
||||||
gcc -v
|
|
||||||
make -v
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
|
|
||||||
cd firmware
|
cd firmware
|
||||||
echo %date% %time%
|
echo %date% %time%
|
||||||
|
@ -43,38 +35,19 @@ if not exist deliver/rusefi_debug.hex exit -1
|
||||||
|
|
||||||
..\misc\hex2dfu\HEX2DFU.exe deliver/rusefi_release.hex -out deliver/rusefi_release.dfu
|
..\misc\hex2dfu\HEX2DFU.exe deliver/rusefi_release.hex -out deliver/rusefi_release.dfu
|
||||||
..\misc\hex2dfu\HEX2DFU.exe deliver/rusefi_debug.hex -out deliver/rusefi_debug.dfu
|
..\misc\hex2dfu\HEX2DFU.exe deliver/rusefi_debug.hex -out deliver/rusefi_debug.dfu
|
||||||
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
call misc\jenkins\build_java_console.bat
|
||||||
echo Building java console
|
|
||||||
cd java_console
|
|
||||||
call ant clean
|
|
||||||
call ant clean_out_folder
|
|
||||||
call ant
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
if not exist java_console_binary/rusefi_console.jar echo CONSOLE COMPILATION FAILED
|
|
||||||
if not exist java_console_binary/rusefi_console.jar exit -1
|
if not exist java_console_binary/rusefi_console.jar exit -1
|
||||||
|
|
||||||
echo Building rusefi simulator
|
call misc\jenkins\build_simulator.bat
|
||||||
cd simulator
|
if not exist simulator/build/rusefi_simulator.exe exit -1
|
||||||
|
|
||||||
mkdir out
|
|
||||||
rm -rf build
|
|
||||||
rm -rf .dep
|
|
||||||
call compile.bat
|
|
||||||
|
|
||||||
if not exist build/rusefi_simulator.exe echo SIMULATOR COMPILATION FAILED
|
|
||||||
if not exist build/rusefi_simulator.exe exit -1
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
rm -rf temp
|
rm -rf temp
|
||||||
mkdir temp
|
mkdir temp
|
||||||
|
|
||||||
set folder=snapshot_%date:~10%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_rusefi
|
set stm_arch=stm32f407
|
||||||
|
set folder=snapshot_%date:~10%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%stm_arch%_rusefi
|
||||||
set folder=temp\%folder%
|
set folder=temp\%folder%
|
||||||
|
|
||||||
# this replaces spaces with 0s - that's needed before 10am
|
# this replaces spaces with 0s - that's needed before 10am
|
||||||
|
|
Loading…
Reference in New Issue