test conf hass

This commit is contained in:
Julien Cabillot 2017-06-01 15:24:46 +02:00 committed by Cabillot Julien
parent 639bab399d
commit 93448e504f

View File

@ -10,7 +10,6 @@ inocode:
- apt update
- apt -y install xvfb
- Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
# - xvfb="$!"
- export DISPLAY=":1"
- cd /
- wget --quiet "https://downloads.arduino.cc/arduino-1.8.2-linux64.tar.xz"
@ -28,14 +27,10 @@ inocode:
- 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"
# after_script:
# - kill -9 "${xvfb}"
yaml:
image: "python:alpine"
before_script:
- pip install "PyYAML"
- pip install "homeassistant"
script:
- cd "${CI_PROJECT_DIR}/home-assistant"
- python -c "from yaml import load, Loader; load(open('configuration.yaml'), Loader=Loader)"
- hass --config "${CI_PROJECT_DIR}/home-assistant" --script check_config