Need help with Travis CI

I am trying to let Travis CI help me with checking my config. When I check_config from the command line, everything is working just fine, but the travis build keeps complaining about ‘packages’.

Fatal error while loading config: ‘packages’

To debug this I have created a fairly simple repo:

https://github.com/metbril/ha-config-test

(tail of) Travis CI build log:

$ hass -c . --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.2
Testing configuration at /home/travis/build/metbril/ha-config-test/.
Fatal error while loading config: 'packages'
Failed config
  General Errors: 
    - 'packages'
Successful config (partial)
The command "hass -c . --script check_config" exited with 1.
Done. Your build exited with 1.

What could possibly be wrong/happening?

Did some modifications (specific ha version and some secrets) and now my test library builds OK.
This means that it’s not HA, but something in my real config. Perhaps one of the secrets…

I solved this by moving any file or path reference from the configuration to the secrets file, since otherwise the paths would not exist.

1 Like