forked from stsybizov/HomeAssistantConfiguration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (35 loc) · 987 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: python
jobs:
python:
- 3.7
- 3.8
env:
- BUILD=stable
- BUILD=beta
- BUILD=dev
matrix:
allow_failures:
- python: 3.7
env: BUILD=dev
- python: 3.8
env: BUILD=stable
- python: 3.8
env: BUILD=beta
- python: 3.8
env: BUILD=dev
before_install:
- mv tests/fake_secrets.yaml secrets.yaml
- perl -i -pe 'if (/whitelist_external_dirs:/) { $_ = <>; $_ = <> while /^\s*-/; }' configuration.yaml
- sed -i 's|use_x_forwarded_for:.*||g; s|trusted_proxies:.*||g' configuration.yaml
# - perl -i -pe 'while (/- platform: rpi_gpio/) { $_ = <>; $_ = <> while !/^\s*-/ && !eof(); }' packages/areas/hallway.yaml
- rm packages/areas/hallway.yaml
install:
- if [ $BUILD == "beta" ]; then
pip3 install --pre homeassistant;
elif [ $BUILD == "dev" ]; then
pip3 install git+git://github.com/home-assistant/home-assistant.git@dev;
else
pip3 install homeassistant;
fi
script:
- hass -c . --script check_config