TravisCI is linked to this github repository, monitoring for changes and automatically validating changes against the latest version of Home Assistant. As per Configuration file testing
The Travis configuration file .travis.yml
defines the information needed by TravisCI.
- Specifically the version of Python to use
- The steps to perform ahead of the test such as copying files that are needed, but aren't part of the repository:
travis/travis_secrets.yaml
- Contains dummy values for the secrets used in the configuration filestravis/travis.fake_ssl_key
andtravis.fake_ssl_crt
- Are dummy files needed for a Home Assistant configuration setup to use SSL. Copying a fakesecrets.yanl
and some fake file for the SSL keys.
- What to install in to the test environment, i.e. homeassistant
- Define the command to run which checks the configuration:
hass -c . --script check_config
There is an automation script which monitors for a successful Travis build to occur, then calls the Git Pull Hassio Add-On, to update the current configuration, then restart Home Assistant. Enabling changes to be made away from the Pi/HASS Hub, uploaded to GitHub and directly applied to the running system.