Setup environments to allow running tests

This commit is contained in:
2024-05-04 21:37:10 +10:00
parent e60fa052df
commit a71eeb1dec

View File

@@ -8,7 +8,7 @@
; Please visit documentation for the other options and examples ; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[env:nodemcuv2] [env:release]
platform = espressif8266 platform = espressif8266
board = nodemcuv2 board = nodemcuv2
framework = arduino framework = arduino
@@ -16,16 +16,34 @@ build_flags =
-D RF_CE_PIN=5 -D RF_CE_PIN=5
-D RF_CS_PIN=15 -D RF_CS_PIN=15
-D RF_IRQ_PIN=4 -D RF_IRQ_PIN=4
[env]
monitor_speed = 115200
lib_deps = lib_deps =
${env.lib_deps}
nrf24/RF24@^1.4.8 nrf24/RF24@^1.4.8
plapointe6/EspMQTTClient@^1.13.3 plapointe6/EspMQTTClient@^1.13.3
contrem/arduino-timer@^3.0.1 contrem/arduino-timer@^3.0.1
ArduinoJson=https://github.com/bblanchon/ArduinoJson#v7.0.0
RFPowerView=https://git.mattway.com.au/matt/RFPowerView.git#v0.0.3 RFPowerView=https://git.mattway.com.au/matt/RFPowerView.git#v0.0.3
[env:test_embedded]
platform = espressif8266
board = nodemcuv2
framework = arduino
build_type = test
lib_deps =
${env.lib_deps}
[env:test_desktop]
platform = native
build_type = test
lib_deps =
${env.lib_deps}
ArduinoFake
[env]
monitor_speed = 115200
test_framework = unity
lib_deps =
ArduinoJson=https://github.com/bblanchon/ArduinoJson#v7.0.0