example ci build

This commit is contained in:
2018-06-10 23:11:56 +02:00
parent 90349e7838
commit 9a5207a3a4
2 changed files with 20 additions and 16 deletions

View File

@@ -12,8 +12,8 @@ firmware-build:
stage: build stage: build
image: python:2.7-stretch image: python:2.7-stretch
script: script:
- pio run -t clean - platformio run -t clean
- platformio ci --lib="." --board=esp12e examples/mesh/mesh.cpp - platformio ci --lib="." --board=esp12e src/examples/mesh/mesh.cpp
artifacts: artifacts:
paths: paths:
- .pioenvs/*/firmware.* - .pioenvs/*/firmware.*

View File

@@ -13,6 +13,10 @@ env_default = meshMqttBridge
[common] [common]
framework = arduino framework = arduino
platform = espressif8266
board = esp12e
upload_speed = 921600
monitor_baud = 115200
lib_deps = lib_deps =
ESP Async WebServer ESP Async WebServer
ESPAsyncTCP ESPAsyncTCP
@@ -23,10 +27,10 @@ src_filter = +<*> -<examples/>
#platform = https://github.com/platformio/platform-espressif8266.git#feature/stage #platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
#platform = https://github.com/platformio/platform-espressif8266.git #platform = https://github.com/platformio/platform-espressif8266.git
#platform = espressif8266@~1.6.0 #platform = espressif8266@~1.6.0
platform = espressif8266 platform = ${common.platform}
board = esp12e board = ${common.board}
upload_speed = 921600 upload_speed = ${common.upload_speed}
monitor_baud = 115200 monitor_baud = ${common.monitor_baud}
framework = ${common.framework} framework = ${common.framework}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
#build_flags = -DLED_PIN=2 -g #build_flags = -DLED_PIN=2 -g
@@ -35,10 +39,10 @@ lib_deps = ${common.lib_deps}
[env:basic] [env:basic]
src_filter = +<*> +<examples/basic/> -<examples/mesh/> -<examples/mqttBridge/> src_filter = +<*> +<examples/basic/> -<examples/mesh/> -<examples/mqttBridge/>
platform = espressif8266 platform = ${common.platform}
board = esp12e board = ${common.board}
upload_speed = 921600 upload_speed = ${common.upload_speed}
monitor_baud = 115200 monitor_baud = ${common.monitor_baud}
framework = ${common.framework} framework = ${common.framework}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
ESPAsyncWifiManager ESPAsyncWifiManager
@@ -46,10 +50,10 @@ lib_deps = ${common.lib_deps}
[env:mesh] [env:mesh]
src_filter = +<*> +<examples/mesh/> -<examples/basic/> -<examples/mqttBridge/> src_filter = +<*> +<examples/mesh/> -<examples/basic/> -<examples/mqttBridge/>
platform = espressif8266 platform = ${common.platform}
board = esp12e board = ${common.board}
upload_speed = 921600 upload_speed = ${common.upload_speed}
monitor_baud = 115200 monitor_baud = ${common.monitor_baud}
framework = ${common.framework} framework = ${common.framework}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
painlessMesh painlessMesh
@@ -58,8 +62,8 @@ lib_deps = ${common.lib_deps}
src_filter = +<*> +<examples/mesh/> -<examples/basic/> -<examples/mesh/> src_filter = +<*> +<examples/mesh/> -<examples/basic/> -<examples/mesh/>
platform = espressif8266 platform = espressif8266
board = esp12e board = esp12e
upload_speed = 921600 upload_speed = ${common.upload_speed}
monitor_baud = 115200 monitor_baud = ${common.monitor_baud}
framework = ${common.framework} framework = ${common.framework}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
painlessMesh painlessMesh