Trying to add config testing pipeline to Gitlab CI.

This commit is contained in:
Alexey Skobkin 2019-08-31 02:49:21 +03:00
parent 911bdc66d2
commit 9a43aad240
3 changed files with 40 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*
# Excluding these files
!.gitlab-ci.yml
!*.yaml
!.gitignore
!*.md

12
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,12 @@
image: 'python:3.5-slim'
before_script:
- cp ci_secrets.yaml secrets.yaml
- apt-get install -y libudev-dev
- pip3 install homeassistant
check_config:
script:
- hass -c . --script check_config

27
ci_secrets.yaml Executable file
View File

@ -0,0 +1,27 @@
xiaomi_vacuum1_ip: 0.0.0.0
xiaomi_vacuum1_token: token
xiaomi_gateway1_mac: 00:00:00:00:00:00
xiaomi_gateway1_key: key
mikrotik_router1_ip: 0.0.0.0
mikrotik_router1_username: login
mikrotik_router1_password: password
emby_media_ip: 0.0.0.0
emby_media_api_key: key
samsung_tv_media_name: tv1_name
samsung_tv_media_ip: 0.0.0.0
samsung_tv_media_mac: 00:00:00:00:00:00
lg_tv_media_name: tv2_name
lg_tv_media_ip: 0.0.0.0
transmission_torrent_host: 0.0.0.0
transmission_torrent_username: login
transmission_torrent_password: password
telegram_bot_key: key
telegram_bot_chat_id: 0000000