import
This commit is contained in:
parent
f7f09c2ddc
commit
cb9bd604b0
35
.gitlab-ci.yml
Normal file
35
.gitlab-ci.yml
Normal file
@ -0,0 +1,35 @@
|
||||
inocode:
|
||||
image: "java:8"
|
||||
variables:
|
||||
ESPURL: "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
|
||||
MEMORY: "custom_FlashSize=generic_1M64"
|
||||
FLASHFREQ: "custom_FlashFreq=generic_40"
|
||||
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" --pref "${MEMORY}" --pref "${FLASHFREQ}" --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
|
||||
Loading…
x
Reference in New Issue
Block a user