-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplatformio.ini
More file actions
158 lines (150 loc) · 5.53 KB
/
Copy pathplatformio.ini
File metadata and controls
158 lines (150 loc) · 5.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = esp32dev, rpipicow, esp8266
; ── Native host tests ─────────────────────────────────────────────────────────
; Compiles the library on the host GCC toolchain and runs Unity unit tests.
; OtelSender.cpp (WiFi/HTTP) is excluded; test/test_otlp/fake_sender.cpp is used
; instead so tests can assert on emitted JSON payloads without real hardware.
[env:native]
platform = native
build_flags =
-std=c++14
-Itest/stubs
-DWIFI_SSID=\"ci-build\"
-DWIFI_PASS=\"ci-build\"
-DOTEL_SERVICE_NAME=\"test-service\"
-DOTEL_SERVICE_NAMESPACE=\"test\"
-DOTEL_SERVICE_VERSION=\"0.0.1\"
-DOTEL_SERVICE_INSTANCE=\"test-001\"
-DOTEL_DEPLOY_ENV=\"test\"
-DARDUINOJSON_DEFAULT_NESTING_LIMIT=15
lib_deps =
bblanchon/ArduinoJson@^7.0.0
nanopb/Nanopb@^0.4.91
aodtorusan/opentelemetry_proto@^1.9.0
build_src_filter = +<*.cpp> -<OtelSender.cpp> -<main.cpp> -<OtelMetrics.cpp>
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps =
ArduinoJson@^7.4.2
nanopb/Nanopb@^0.4.91
WiFi
HTTPClient
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"${sysenv.OTEL_SERVICE_INSTANCE}\"
-DOTEL_DEPLOY_ENV=\"${sysenv.OTEL_DEPLOY_ENV}\"
[env:rpipicow]
; Community Raspberry Pi Pico W platform and board
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipicow
framework = arduino
lib_deps =
bblanchon/ArduinoJson@^7.0.0
nanopb/Nanopb@^0.4.91
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"${sysenv.OTEL_SERVICE_INSTANCE}\"
-DOTEL_DEPLOY_ENV=\"${sysenv.OTEL_DEPLOY_ENV}\"
-DDEBUG
[env:esp8266]
platform = espressif8266
board = d1_mini
framework = arduino
lib_deps =
bblanchon/ArduinoJson@^7.0.0
nanopb/Nanopb@^0.4.91
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"esp8266\"
-DOTEL_DEPLOY_ENV=\"esp8266\"
; ── Protobuf variants — used by CI to validate the protobuf encoding path ─────
; Fully specified (not using `extends`) because platformio ci does not reliably
; inherit platform/board/framework through the extends mechanism.
[env:esp32dev-proto]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps =
ArduinoJson@^7.4.2
nanopb/Nanopb@^0.4.91
WiFi
HTTPClient
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"${sysenv.OTEL_SERVICE_INSTANCE}\"
-DOTEL_DEPLOY_ENV=\"${sysenv.OTEL_DEPLOY_ENV}\"
-DOTEL_EXPORTER_OTLP_PROTOCOL=OTEL_EXPORTER_OTLP_PROTOCOL_HTTP_PROTOBUF
[env:rpipicow-proto]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipicow
framework = arduino
lib_deps =
bblanchon/ArduinoJson@^7.0.0
nanopb/Nanopb@^0.4.91
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"${sysenv.OTEL_SERVICE_INSTANCE}\"
-DOTEL_DEPLOY_ENV=\"${sysenv.OTEL_DEPLOY_ENV}\"
-DDEBUG
-DOTEL_EXPORTER_OTLP_PROTOCOL=OTEL_EXPORTER_OTLP_PROTOCOL_HTTP_PROTOBUF
[env:esp8266-proto]
platform = espressif8266
board = d1_mini
framework = arduino
lib_deps =
bblanchon/ArduinoJson@^7.0.0
nanopb/Nanopb@^0.4.91
aodtorusan/opentelemetry_proto@^1.9.0
build_flags =
-DWIFI_SSID=\"${sysenv.WIFI_SSID}\"
-DWIFI_PASS=\"${sysenv.WIFI_PASS}\"
-DOTEL_COLLECTOR_BASE_URL="\"http://192.168.8.10:4318\""
-DOTEL_SERVICE_NAME=\"${sysenv.OTEL_SERVICE_NAME}\"
-DOTEL_SERVICE_NAMESPACE=\"${sysenv.OTEL_SERVICE_NAMESPACE}\"
-DOTEL_SERVICE_VERSION=\"${sysenv.OTEL_SERVICE_VERSION}\"
-DOTEL_SERVICE_INSTANCE=\"esp8266\"
-DOTEL_DEPLOY_ENV=\"esp8266\"
-DOTEL_EXPORTER_OTLP_PROTOCOL=OTEL_EXPORTER_OTLP_PROTOCOL_HTTP_PROTOBUF