mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-30 00:07:35 +00:00
2.0 KiB
2.0 KiB
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release | ha_iot_class |
---|---|---|---|---|---|---|---|---|---|---|---|
page | Travis-CI Sensor | Instructions on how to integrate the test build results reported by Travis-CI within Home Assistant. | 2017-09-04 10:00 | true | false | true | true | travisci.svg | Sensor | 0.56 | Cloud Polling |
With this sensor platform, you will be able to integrate the test build results reported by Travis-CI working within Home Assistant.
To enable this platform, please add the following to your configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: travisci
api_key: 123456789
Configuration variables:
- api_key (Required): GitHub access token with the following scopes: read:org, user:email, repo_deployment, repo:status, write:repo_hook.
- branch (Optional): Determine which default branch should be used by the state condition. Defaults to master.
- scan_interval (Optional): How frequently to query for new data. Defaults to 30 seconds.
- monitored_conditions array (Optional): Conditions to display in the frontend. If not specified, all conditions below will be enabled by default. The following conditions can be monitored.
- last_build_id: Turn the last build job ID.
- last_build_duration: Return the time elapsed in seconds to run the last test job.
- last_build_finished_at: Return the timestamp of when the last test job finished.
- last_build_started_at: Return the timestamp of when the last test job started.
- last_build_state: Return the state from the latest test job/PR. The conditions can be: 'passed', 'failed' or 'started'.
- state: Return the build test from the branch specified at by branch parameter.
- repository: array (Optional): Name from the GitHub repositories to be monitored. If not specified, all GitHub repositories linked to Travis-CI will be enabled by default.