* factoring of the publishing function * integration of json publishing to MQTT * receiving and transcode json messages from mqtt * replace the TRACE runtime condition by a buildtime one so as to decrease program size * remove retainFlag parameter not necessary for the moment * Increase the scope of tests for arduino mega and esp32 * Update arduinojson library to 5.13.3 * add macros to choose between simple or json publishing or both * differentiate build test for ATmega2560 * correct wrong sprintf definition * change IDE version for continuous integration * let default warning level in arduino ide * correct pins for ESP32 * reorganize user_config
40 lines
1.9 KiB
YAML
40 lines
1.9 KiB
YAML
language: c
|
|
dist: trusty
|
|
env:
|
|
- BD=arduino:avr:uno
|
|
- BD=arduino:avr:mega:cpu=atmega2560
|
|
- BD=esp8266:esp8266:nodemcuv2:CpuFrequency=80,FlashSize=4M3M
|
|
- BD=esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M3M
|
|
- BD=espressif:esp32:esp32:PartitionScheme=min_spiffs,FlashFreq=80
|
|
before_install:
|
|
- "/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
|
|
- wget http://downloads.arduino.cc/arduino-1.8.6-linux64.tar.xz
|
|
- tar xf arduino-1.8.6-linux64.tar.xz
|
|
- sudo mv arduino-1.8.6 /usr/local/share/arduino
|
|
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
|
|
install:
|
|
- ln -s $PWD /usr/local/share/arduino/OpenMQTTGateway
|
|
- rm /usr/local/share/arduino/OpenMQTTGateway/User_config.h
|
|
- cp /usr/local/share/arduino/OpenMQTTGateway/tests/Test_config.h /usr/local/share/arduino/OpenMQTTGateway/User_config.h
|
|
- rm -rf /usr/local/share/arduino/libraries/RobotIRremote
|
|
- cp -R /usr/local/share/arduino/OpenMQTTGateway/lib/. /usr/local/share/arduino/libraries
|
|
- mkdir -p /usr/local/share/arduino/hardware/espressif
|
|
- cd /usr/local/share/arduino/hardware/espressif
|
|
- wget https://github.com/espressif/arduino-esp32/archive/89859f7f4c07ce3e5d487a4b689dbda78f5d5c3a.zip -O /tmp/esp32.zip
|
|
- unzip /tmp/esp32.zip -d /usr/local/share/arduino/hardware/espressif
|
|
- mv arduino-esp32* esp32
|
|
- cd esp32/tools/
|
|
- python get.py
|
|
- cd /usr/local/share/arduino/OpenMQTTGateway
|
|
- arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
|
|
- arduino --install-boards esp8266:esp8266
|
|
- arduino --board $BD --save-prefs
|
|
script:
|
|
- arduino --verify --board $BD $PWD/OpenMQTTGateway.ino
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: change
|
|
|