37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
inocode:
|
|
image: "java:8"
|
|
variables:
|
|
ESPURL: "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
|
|
MEMORY: "custom_FlashSize=nodemcuv2_4M3M"
|
|
INSTBOARD: "esp8266:esp8266"
|
|
BOARD: "${INSTBOARD}:nodemcuv2"
|
|
GITREMDEB: "https://github.com/JoaoLopesF/ESP8266-RemoteDebug-Telnet.git"
|
|
before_script:
|
|
- apt update
|
|
- apt -y install xvfb
|
|
- Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
|
|
- export DISPLAY=":1"
|
|
- cd /
|
|
- wget --quiet "https://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz"
|
|
- tar axf "arduino-1.8.2-linux64.tar.xz"
|
|
- /arduino-1.8.2/arduino --pref "boardsmanager.additional.urls=${ESPURL}" --save-prefs
|
|
- /arduino-1.8.2/arduino --install-boards "${INSTBOARD}"
|
|
- /arduino-1.8.2/arduino --pref "compiler.warning_level=all" --save-prefs
|
|
- /arduino-1.8.2/arduino --pref "${MEMORY}" --save-prefs
|
|
- /arduino-1.8.2/arduino --board "${BOARD}" --save-prefs
|
|
script:
|
|
- /arduino-1.8.2/arduino --install-library "FastLED"
|
|
- /arduino-1.8.2/arduino --install-library "PubSubClient"
|
|
- cd "/root/Arduino/libraries/"
|
|
- git clone "${GITREMDEB}"
|
|
- cd "${CI_PROJECT_DIR}/arduino/${CI_PROJECT_NAME}"
|
|
- cp "${CI_PROJECT_NAME}.example.h" "${CI_PROJECT_NAME}.h"
|
|
- /arduino-1.8.2/arduino --verify "${CI_PROJECT_NAME}.ino"
|
|
|
|
yaml:
|
|
image: "python:alpine"
|
|
before_script:
|
|
- pip install "homeassistant"
|
|
script:
|
|
- hass --config "${CI_PROJECT_DIR}/home-assistant" --script check_config
|