How to: Use CircleCI to check your config on GitHub

Difficult, I dont have a realy config error, I it just the missing paths and the check blocks and give full output.

/opt/scripts/ is in the whitelisted directory

Failed config
homeassistant:
- not a directory @ data[‘whitelist_external_dirs’][0]
Exited with code 3
Your output is too large to display in the browser. Only the last 400000 characters are displayed.

OK, in your configuration file put

homeassistant:
  whitelist_external_dirs:
    - !secret scripts_directory

Then in secrets

scripts_directory: /opt/scripts

And in your fake secrets file

scripts_directory: "~" 

And see if that passes.

does not like it I guess:

- not a directory @ data['whitelist_external_dirs'][0]

Try same as above, but in fake secrets

scripts_directory: fake_directory 

And in your CI script

version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.6.4
    working_directory: ~/repo
    steps:
      - checkout
      - run:
          name: Check config
          command: |
            mv secrets_redacted.yaml secrets.yaml
            mkdir fake_directory
            python3.6 -m venv .
            source bin/activate
            pip3 install --pre --upgrade homeassistant
            hass -c . --script check_config
1 Like

works great now; had to adapt the sensors to your proposed secrets structures for the paths.

Thank you very much for you patience and support @anon43302295

1 Like

No worries, glad you’re sorted :+1:

Now looking for a solution to have notifications in Telegram directly from Circle CI.