Skip to content
Permalink
Browse files

Set up CI with Azure Pipelines

[skip ci]
  • Loading branch information...
eifinger committed Jul 21, 2019
1 parent 290e289 commit 28719f07fdb96fffcab09ce9fa17f336b4269249
Showing with 43 additions and 0 deletions.
  1. +43 −0 azure-pipelines.yml
@@ -0,0 +1,43 @@
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
- master

pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36_Installed:
python.version: '3.6'
hass.version: '0.95.4'
Python36_Latest:
python.version: '3.6'
hass.version: ''
Python37_Installed:
python.version: '3.7'
hass.version: '0.95.4'
Python37_Latest:
python.version: '3.7'
hass.version: ''

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'

- script: |
python -m pip install --upgrade pip
pip install homeassistant==$(python.version)
displayName: 'Install dependencies'

- script: |
mv travis_secrets.yaml secrets.yaml
displayName: 'Create secrets.yaml'

- script: |
hass -c . --script check_config --info all
displayName: 'Test Home-Assistant Config'

0 comments on commit 28719f0

Please sign in to comment.
You can’t perform that action at this time.