Effet cylon sur un bandeau de LED contrôlé par HomeAssistant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. inocode:
  2. image: "java:8"
  3. variables:
  4. ESPURL: "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
  5. MEMORY: "custom_FlashSize=nodemcuv2_4M3M"
  6. INSTBOARD: "esp8266:esp8266"
  7. BOARD: "${INSTBOARD}:nodemcuv2"
  8. ARDVER: "1.8.5"
  9. before_script:
  10. - apt update
  11. - apt -y install xvfb
  12. - Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
  13. - export DISPLAY=":1"
  14. - cd /
  15. - wget --quiet "https://downloads.arduino.cc/arduino-${ARDVER}-linux64.tar.xz" -O "arduino-${ARDVER}-linux64.tar.xz"
  16. - tar axf "arduino-${ARDVER}-linux64.tar.xz"
  17. - /arduino-${ARDVER}/arduino --pref "boardsmanager.additional.urls=${ESPURL}" --save-prefs
  18. - /arduino-${ARDVER}/arduino --install-boards "${INSTBOARD}"
  19. - /arduino-${ARDVER}/arduino --pref "compiler.warning_level=all" --pref "${MEMORY}" --board "${BOARD}" --save-prefs
  20. script:
  21. - cd "${CI_PROJECT_DIR}/arduino/${CI_PROJECT_NAME}"
  22. - cp "${CI_PROJECT_NAME}.example.h" "${CI_PROJECT_NAME}.h"
  23. - /arduino-${ARDVER}/arduino --install-library "FastLED"
  24. - /arduino-${ARDVER}/arduino --install-library "PubSubClient"
  25. - /arduino-${ARDVER}/arduino --verify "${CI_PROJECT_NAME}.ino"
  26. yaml:
  27. image: "python:alpine"
  28. before_script:
  29. - pip install "PyYAML"
  30. script:
  31. - cd "${CI_PROJECT_DIR}/home-assistant"
  32. - python -c "from yaml import load, Loader; load(open('ha_configuration.yml'), Loader=Loader)"