mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
updates to support automated CI builds
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = release
|
default_envs = debug
|
||||||
;default_envs = debug
|
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
; custom build options are:
|
; custom build options are:
|
||||||
@@ -12,17 +11,12 @@ default_envs = release
|
|||||||
; -DTESTS
|
; -DTESTS
|
||||||
; -DCRASH
|
; -DCRASH
|
||||||
; -DFORCE_SERIAL
|
; -DFORCE_SERIAL
|
||||||
; -DLOGICANALYZER
|
|
||||||
custom_flags =
|
custom_flags =
|
||||||
|
|
||||||
;general_flags = -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -DBEARSSL_SSL_BASIC
|
;general_flags = -DNO_GLOBAL_EEPROM -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -DBEARSSL_SSL_BASIC
|
||||||
general_flags = -DNO_GLOBAL_EEPROM
|
general_flags = -DNO_GLOBAL_EEPROM
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
; board = esp12e
|
|
||||||
; board = nodemcu
|
|
||||||
; board = nodemcu2
|
|
||||||
board = d1_mini
|
|
||||||
framework = arduino
|
framework = arduino
|
||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
lib_deps =
|
lib_deps =
|
||||||
@@ -47,20 +41,31 @@ monitor_speed = 115200
|
|||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_port = ems-esp.local
|
upload_port = ems-esp.local
|
||||||
|
|
||||||
[env:debug]
|
# Special build for CI test
|
||||||
build_type = debug
|
[env:travis]
|
||||||
build_flags = ${common.general_flags} ${common.custom_flags} -DTESTS
|
board = esp12e
|
||||||
extra_scripts =
|
build_flags = ${common.general_flags}
|
||||||
pre:scripts/rename_fw.py
|
|
||||||
pre:scripts/buildweb.py
|
|
||||||
|
|
||||||
[env:release]
|
[env:esp12e]
|
||||||
|
board = esp12e
|
||||||
|
build_flags = ${common.general_flags}
|
||||||
|
|
||||||
|
[env:d1_mini]
|
||||||
|
board = d1_mini
|
||||||
|
build_flags = ${common.general_flags}
|
||||||
|
|
||||||
|
[env:nodemcuv2]
|
||||||
|
board = nodemcuv2
|
||||||
|
build_flags = ${common.general_flags}
|
||||||
|
|
||||||
|
[env:nodemcu]
|
||||||
|
board = nodemcu
|
||||||
|
build_flags = ${common.general_flags}
|
||||||
|
|
||||||
|
[env:debug]
|
||||||
|
board = d1_mini
|
||||||
|
build_type = debug
|
||||||
build_flags = ${common.general_flags} ${common.custom_flags}
|
build_flags = ${common.general_flags} ${common.custom_flags}
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
pre:scripts/rename_fw.py
|
pre:scripts/rename_fw.py
|
||||||
pre:scripts/buildweb.py
|
pre:scripts/buildweb.py
|
||||||
|
|
||||||
[env:checkcode]
|
|
||||||
build_type = debug
|
|
||||||
build_flags = ${common.general_flags} -Wall
|
|
||||||
extra_scripts = scripts/checkcode.py
|
|
||||||
|
|||||||
@@ -135,7 +135,10 @@ if [ ${par_thread} -ge ${par_total_threads} ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# travis platformio target is used for nightly Test
|
||||||
travis=$(list_envs | grep travis | sort)
|
travis=$(list_envs | grep travis | sort)
|
||||||
|
|
||||||
|
# get all taregts, excluding travis and debug
|
||||||
available=$(list_envs | grep -Ev -- 'travis|debug' | sort)
|
available=$(list_envs | grep -Ev -- 'travis|debug' | sort)
|
||||||
|
|
||||||
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS}"
|
export PLATFORMIO_BUILD_FLAGS="${PLATFORMIO_BUILD_FLAGS}"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ env.AddPreAction("buildprog", build_web)
|
|||||||
|
|
||||||
# build filename, replacing . with _ for the version
|
# build filename, replacing . with _ for the version
|
||||||
#env.Replace(PROGNAME="firmware_%s" % branch + "_" + app_version.replace(".", "_"))
|
#env.Replace(PROGNAME="firmware_%s" % branch + "_" + app_version.replace(".", "_"))
|
||||||
env.Replace(PROGNAME=app_name + "-" + app_version.replace(".", "_") + "-" + board + "-" + branch)
|
#env.Replace(PROGNAME=app_name + "-" + app_version.replace(".", "_") + "-" + board + "-" + branch)
|
||||||
#env.Replace(PROGNAME=app_name + "-" + app_version)
|
env.Replace(PROGNAME=app_name + "-" + app_version.replace(".", "_") + "-" + board)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user