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