updates to support automated CI builds

This commit is contained in:
Paul
2019-10-26 11:57:52 +02:00
parent ff7268a72f
commit dd53d08802
3 changed files with 29 additions and 21 deletions

View File

@@ -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
[env:debug]
build_type = debug
build_flags = ${common.general_flags} ${common.custom_flags} -DTESTS
extra_scripts =
pre:scripts/rename_fw.py
pre:scripts/buildweb.py
# Special build for CI test
[env:travis]
board = esp12e
build_flags = ${common.general_flags}
[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}
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

View File

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

View File

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