From 74599451d5dfd9c3530d2662c55041e44a378c80 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 2 Jun 2017 15:13:58 +0200 Subject: [PATCH] import -ci [wip] --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ home-assistant/.HA_VERSION | 1 + 2 files changed, 37 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 home-assistant/.HA_VERSION diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4263649 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +inocode: + image: "java:8" + variables: + ESPURL: "http://arduino.esp8266.com/stable/package_esp8266com_index.json" + MEMORY: "custom_FlashSize=generic_1M64" + INSTBOARD: "esp8266:esp8266" + BOARD: "${INSTBOARD}:generic" + 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 diff --git a/home-assistant/.HA_VERSION b/home-assistant/.HA_VERSION new file mode 100644 index 0000000..3279fe2 --- /dev/null +++ b/home-assistant/.HA_VERSION @@ -0,0 +1 @@ +0.45.1 \ No newline at end of file