|
|
|
@ -6,15 +6,23 @@ production: |
|
|
|
INSTBOARD: "esp8266:esp8266" |
|
|
|
BOARD: "${INSTBOARD}:nodemcuv2" |
|
|
|
before_script: |
|
|
|
- apt update |
|
|
|
- apt update >/dev/null |
|
|
|
- cd / |
|
|
|
- wget --quiet "https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz" -O "arduino-nightly-linux64.tar.xz" |
|
|
|
- tar axf "arduino-nightly-linux64.tar.xz" |
|
|
|
- /arduino-nightly/arduino --pref "boardsmanager.additional.urls=${ESPURL}" |
|
|
|
- /arduino-nightly/arduino --install-boards "${INSTBOARD}" |
|
|
|
script: |
|
|
|
- cd "${CI_PROJECT_DIR}" |
|
|
|
- cd "${CI_PROJECT_DIR}/arduino" |
|
|
|
- cp "mqttled.example.h" "mqttled.h" |
|
|
|
- /arduino-nightly/arduino --install-library "FastLED" |
|
|
|
- /arduino-nightly/arduino --install-library "PubSubClient" |
|
|
|
- /arduino-nightly/arduino --pref "${MEMORY}" --board "${BOARD}" --verify "mqttled.ino" |
|
|
|
|
|
|
|
yaml: |
|
|
|
image: "python:alpine" |
|
|
|
before_script: |
|
|
|
- pip install "PyYAML" |
|
|
|
script: |
|
|
|
- cd "${CI_PROJECT_DIR}/home-assistant" |
|
|
|
- python -c "from yaml import load, Loader; load(open('ha_configuration.yml'), Loader=Loader)" |