forked from mysensors/NodeManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
512 lines (512 loc) · 22.6 KB
/
.travis.yml
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
language: c
cache:
directories:
# prepare the cache for storing dependencies
- /home/travis/.deps
env:
global:
# the cache directory where dependencies have been saved
- DEPS=/home/travis/.deps
# arduino IDE version to install
- ARDUINO_VERSION=1.8.5
# MySensors library version to install
- MYSENSORS_VERSION=2.3.0
# the path of the template sketch that will be used for testing all the sensors
- SKETCH="$PWD/examples/Template/Template.ino"
# command to run to enable OTA configuration in the sketch
- OTA_CONFIGURATION="sed -i 's/#define NODEMANAGER_OTA_CONFIGURATION OFF/#define NODEMANAGER_OTA_CONFIGURATION ON/g' $SKETCH && echo 'Enabled OTA configuration'"
# command to run to compile the sketch
- COMPILE="cat $SKETCH; arduino --verify --board arduino:avr:mini:cpu=atmega328 $SKETCH"
before_install:
# setup X environment
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
- sleep 3
- export DISPLAY=:1.0
# download and cache the arduino IDE if not already available
- if [ -d $DEPS/arduino-$ARDUINO_VERSION ]; then echo "Found Arduino IDE"; else wget https://downloads.arduino.cc/arduino-$ARDUINO_VERSION-linux64.tar.xz && tar xf arduino-$ARDUINO_VERSION-linux64.tar.xz && mv arduino-$ARDUINO_VERSION $DEPS ;fi
# download and cache the MySensors library if not already available
- if [ -d $DEPS/MySensors-2.3.0 ]; then echo "Found MySensors Library 2.3.0"; else wget https://github.com/mysensors/MySensors/archive/2.3.0.tar.gz && tar xf 2.3.0.tar.gz && mv MySensors-2.3.0 $DEPS ;fi
- if [ -d $DEPS/MySensors-2.2.0 ]; then echo "Found MySensors Library 2.2.0"; else wget https://github.com/mysensors/MySensors/archive/2.2.0.tar.gz && tar xf 2.2.0.tar.gz && mv MySensors-2.2.0 $DEPS ;fi
- if [ -d $DEPS/MySensors-2.1.1 ]; then echo "Found MySensors Library 2.1.1"; else wget https://github.com/mysensors/MySensors/archive/2.1.1.tar.gz && tar xf 2.1.1.tar.gz && mv MySensors-2.1.1 $DEPS ;fi
install:
# install the Arduino IDE
- sudo cp -r $DEPS/arduino-$ARDUINO_VERSION /usr/local/share/arduino
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
# install the MySensors Library
- sudo cp -r $DEPS/MySensors-$MYSENSORS_VERSION /usr/local/share/arduino/libraries
# install NodeManager as a library
- sudo ln -s $PWD /usr/local/share/arduino/libraries/MySensors_NodeManager
# make a backup copy of the sketch
- cp $SKETCH $SKETCH.bak
jobs:
include:
- stage: build
name: "Empty Sketch (NRF24 radio)"
script:
- eval $COMPILE
- name: "Empty Sketch (RFM69 radio)"
script:
- sed -r -i 's/(#define MY_RADIO_NRF24)/\/\/\1/' $SKETCH
- sed -r -i 's/\/\/(#define MY_RADIO_RFM69)/\1/' $SKETCH
- sed -r -i 's/\/\/(#define MY_IS_RFM69HW)/\1/' $SKETCH
- sed -r -i 's/\/\/(#define MY_RFM69_NEW_DRIVER)/\1/' $SKETCH
- eval $COMPILE
- name: "MySensors v2.2.0"
script:
- sudo rm -rf /usr/local/share/arduino/libraries/MySensors-$MYSENSORS_VERSION
- sudo cp -r $DEPS/MySensors-2.2.0 /usr/local/share/arduino/libraries
- eval $COMPILE
- name: "MySensors v2.1.1"
script:
- sudo rm -rf /usr/local/share/arduino/libraries/MySensors-$MYSENSORS_VERSION
- sudo cp -r $DEPS/MySensors-2.2.0 /usr/local/share/arduino/libraries
- eval $COMPILE
- name: "Example AnalogLightAndTemperatureSensor"
script:
- arduino --verify --board arduino:avr:mini:cpu=atmega328 examples/AnalogLightAndTemperatureSensor/AnalogLightAndTemperatureSensor.ino
- name: "Example BoilerSensor"
script:
- arduino --verify --board arduino:avr:mini:cpu=atmega328 examples/BoilerSensor/BoilerSensor.ino
- name: "Example MotionSensor"
script:
- arduino --verify --board arduino:avr:mini:cpu=atmega328 examples/MotionSensor/MotionSensor.ino
- name: "Gateway Serial"
script:
- sed -r -i 's/\/\/(#define MY_GATEWAY_SERIAL)/\1/' $SKETCH
- eval $COMPILE
- name: "Features ON"
script:
- arduino --install-library "DS3232RTC,Time"
- sed -r -i 's/(#define NODEMANAGER_.+) OFF/\1 ON/g' $SKETCH
- sed -i 's/#define NODEMANAGER_OTA_CONFIGURATION ON/#define NODEMANAGER_OTA_CONFIGURATION OFF/g' $SKETCH
- eval $COMPILE
- name: "Features OFF"
script:
- sed -r -i 's/(#define NODEMANAGER_.+) ON/\1 OFF/g' $SKETCH
- eval $COMPILE
- name: "SensorBattery"
script:
- sed -r -i 's/\/\/(SensorBattery .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBattery.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSignal"
script:
- sed -r -i 's/\/\/(SensorSignal .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSignal.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorAnalogInput"
script:
- sed -r -i 's/\/\/(SensorAnalogInput .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorAnalogInput.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorLDR"
script:
- sed -r -i 's/\/\/(SensorLDR .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorLDR.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorRain"
script:
- sed -r -i 's/\/\/(SensorRain .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorRain.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSoilMoisture"
script:
- sed -r -i 's/\/\/(SensorSoilMoisture .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSoilMoisture.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorThermistor"
script:
- sed -r -i 's/\/\/(SensorThermistor .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorThermistor.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorML8511"
script:
- sed -r -i 's/\/\/(SensorML8511 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorML8511.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorACS712"
script:
- sed -r -i 's/\/\/(SensorACS712 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorACS712.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDigitalInput"
script:
- sed -r -i 's/\/\/(SensorDigitalInput .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDigitalInput.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDigitalOutput"
script:
- sed -r -i 's/\/\/(SensorDigitalOutput .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDigitalOutput.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorRelay"
script:
- sed -r -i 's/\/\/(SensorRelay .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorRelay.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorLatchingRelay1Pin"
script:
- sed -r -i 's/\/\/(SensorLatchingRelay1Pin .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorLatchingRelay1Pin.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorLatchingRelay2Pins"
script:
- sed -r -i 's/\/\/(SensorLatchingRelay2Pins .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorLatchingRelay2Pins.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDHT11"
script:
- wget https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip && unzip master.zip
- sudo cp -r MySensorsArduinoExamples-master/libraries/DHT /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorDHT11 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDHT11.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDHT22"
script:
- wget https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip && unzip master.zip
- sudo cp -r MySensorsArduinoExamples-master/libraries/DHT /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorDHT22 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDHT22.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSHT21"
script:
- arduino --install-library "Sodaq_SHT2x"
- sed -r -i 's/\/\/(SensorSHT21 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSHT21.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorHTU21D"
script:
- arduino --install-library "Sodaq_SHT2x"
- sed -r -i 's/\/\/(SensorHTU21D .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorHTU21D.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorInterrupt"
script:
- sed -r -i 's/\/\/(SensorInterrupt .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorInterrupt.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDoor"
script:
- sed -r -i 's/\/\/(SensorDoor .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDoor.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMotion"
script:
- sed -r -i 's/\/\/(SensorMotion .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMotion.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDs18b20"
script:
- arduino --install-library "OneWire"
- wget https://github.com/milesburton/Arduino-Temperature-Control-Library/archive/master.zip && unzip master.zip
- sudo cp -r Arduino-Temperature-Control-Library-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorDs18b20 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDs18b20.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorBH1750"
script:
- wget https://github.com/claws/BH1750/archive/master.zip && unzip master.zip
- sudo cp -r BH1750-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorBH1750 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBH1750.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMLX90614"
script:
- arduino --install-library "Adafruit MLX90614 Library"
- sed -r -i 's/\/\/(SensorMLX90614 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMLX90614.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorBME280"
script:
- arduino --install-library "Adafruit Unified Sensor,Adafruit BME280 Library"
- sed -r -i 's/\/\/(SensorBME280 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBME280.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorBMP085"
script:
- arduino --install-library "Adafruit BMP085 Library"
- sed -r -i 's/\/\/(SensorBMP085 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBMP085.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorBMP180"
script:
- arduino --install-library "Adafruit BMP085 Library"
- sed -r -i 's/\/\/(SensorBMP180 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBMP180.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorBMP280"
script:
- arduino --install-library "Adafruit Unified Sensor,Adafruit BMP280 Library"
- sed -r -i 's/\/\/(SensorBMP280 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorBMP280.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSonoff"
script:
- arduino --install-library "Bounce2"
- sed -r -i 's/\/\/(SensorSonoff .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSonoff.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorHCSR04"
script:
- wget https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip && unzip master.zip
- sudo cp -r MySensorsArduinoExamples-master/libraries/NewPing /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorHCSR04 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorHCSR04.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMCP9808"
script:
- arduino --install-library "Adafruit MCP9808 Library"
- sed -r -i 's/\/\/(SensorMCP9808 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMCP9808.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMQ"
script:
- sed -r -i 's/\/\/(SensorMQ .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMQ.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMHZ19"
script:
- sed -r -i 's/\/\/(SensorMHZ19 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMHZ19.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorAM2320"
script:
- wget https://github.com/thakshak/AM2320/archive/master.zip && unzip master.zip
- sudo cp -r AM2320-master/AM2320 /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorAM2320 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorAM2320.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorTSL2561"
script:
- wget https://github.com/adafruit/TSL2561-Arduino-Library/archive/master.zip && unzip master.zip
- sudo cp -r TSL2561-Arduino-Library-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorTSL2561 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorTSL2561.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPT100"
script:
- wget https://raw.githubusercontent.com/nxcosa/HighTemperatureSensor/master/libraries.zip && unzip libraries.zip
- sudo cp -r libraries/DFRobotHighTemperatureSensor /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorPT100 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPT100.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDimmer"
script:
- sed -r -i 's/\/\/(SensorDimmer .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDimmer.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorRainGauge"
script:
- sed -r -i 's/\/\/(SensorRainGauge .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorRainGauge.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPowerMeter"
script:
- sed -r -i 's/\/\/(SensorPowerMeter .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPowerMeter.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorWaterMeter"
script:
- sed -r -i 's/\/\/(SensorWaterMeter .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorWaterMeter.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPowerMeter"
script:
- sed -r -i 's/\/\/(SensorPowerMeter .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPowerMeter.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPlantowerPMS"
script:
- arduino --install-library "PMS Library"
- sed -r -i 's/\/\/(SensorPlantowerPMS .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPlantowerPMS.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorVL53L0X"
script:
- wget https://github.com/pololu/vl53l0x-arduino/archive/master.zip && unzip master.zip
- sudo cp -r vl53l0x-arduino-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorVL53L0X .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorVL53L0X.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "DisplaySSD1306"
script:
- arduino --install-library "SSD1306Ascii"
- sed -r -i 's/\/\/(DisplaySSD1306 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/DisplaySSD1306.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSHT31"
script:
- arduino --install-library "Adafruit SHT31 Library"
- sed -r -i 's/\/\/(SensorSHT31 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSHT31.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSI7021"
script:
- wget https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip && unzip master.zip
- sudo cp -r MySensorsArduinoExamples-master/libraries/SI7021 /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorSI7021 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSI7021.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorChirp"
script:
- arduino --install-library "I2CSoilMoistureSensor"
- sed -r -i 's/\/\/(SensorChirp .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorChirp.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "DisplayHD44780"
script:
- wget https://github.com/cyberang3l/NewLiquidCrystal/archive/master.zip && unzip master.zip
- sudo cp -r NewLiquidCrystal-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(DisplayHD44780 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/DisplayHD44780.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorTTP"
script:
- sed -r -i 's/\/\/(SensorTTP .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorTTP.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorServo"
script:
- sed -r -i 's/\/\/(SensorServo .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorServo.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorAPDS9960"
script:
- arduino --install-library "SparkFun APDS9960 RGB and Gesture Sensor"
- sed -r -i 's/\/\/(SensorAPDS9960 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorAPDS9960.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorNeopixel"
script:
- arduino --install-library "Adafruit NeoPixel"
- sed -r -i 's/\/\/(SensorNeopixel .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorNeopixel.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorSDS011"
script:
- arduino --install-library "SDS011 sensor Library"
- sed -r -i 's/\/\/(SensorSDS011 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorSDS011.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorFPM10A"
script:
- wget https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library/archive/master.zip && unzip master.zip
- sudo cp -r Adafruit-Fingerprint-Sensor-Library-master /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorFPM10A .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorFPM10A.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPH"
script:
- sed -r -i 's/\/\/(SensorPH .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPH.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPca9685W"
script:
- arduino --install-library "Adafruit PWM Servo Driver Library"
- sed -r -i 's/\/\/(SensorPca9685W .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPca9685W.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPca9685Rgb"
script:
- arduino --install-library "Adafruit PWM Servo Driver Library"
- sed -r -i 's/\/\/(SensorPca9685Rgb .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPca9685Rgb.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPca9685Rgbw"
script:
- arduino --install-library "Adafruit PWM Servo Driver Library"
- sed -r -i 's/\/\/(SensorPca9685Rgbw .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPca9685Rgbw.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorDSM501A"
script:
- sed -r -i 's/\/\/(SensorDSM501A .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorDSM501A.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorPN532"
script:
- wget https://github.com/elechouse/PN532/archive/PN532_HSU.zip && unzip PN532_HSU.zip
- sudo cp -r PN532-PN532_HSU/* /usr/local/share/arduino/libraries
- sed -r -i 's/\/\/(SensorPN532 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorPN532.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorCCS811"
script:
- arduino --install-library "Adafruit CCS811 Library"
- sed -r -i 's/\/\/(SensorCCS811 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorCCS811.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorMPR121"
script:
- arduino --install-library "Adafruit MPR121"
- sed -r -i 's/\/\/(SensorMPR121 .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorMPR121.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE
- name: "SensorGSM"
script:
- sed -r -i 's/\/\/(SensorGSM .+)/\1/' $SKETCH
- sed -r -i 's/\/\/(#include <sensors\/SensorGSM.h>)/\1/' $SKETCH
- eval $OTA_CONFIGURATION
- eval $COMPILE