import -ci [wip]
This commit is contained in:
parent
ac71f58e0a
commit
74599451d5
36
.gitlab-ci.yml
Normal file
36
.gitlab-ci.yml
Normal file
@ -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
|
||||
1
home-assistant/.HA_VERSION
Normal file
1
home-assistant/.HA_VERSION
Normal file
@ -0,0 +1 @@
|
||||
0.45.1
|
||||
Loading…
x
Reference in New Issue
Block a user