Update azure-pipelines-ci.yml for Azure Pipelines

pull/24833/head
Pascal Vizeli 2019-06-28 22:08:29 +02:00
parent 8e2bbf8c82
commit bc0fb5e3d9
1 changed files with 26 additions and 4 deletions

View File

@ -32,18 +32,40 @@ stages:
container: $[ variables['PythonMain'] ]
steps:
- script: |
python -m venv lint
python -m venv venv
. lint/bin/activate
. venv/bin/activate
pip install flake8
displayName: 'Setup Env'
- script: |
. lint/bin/activate
flake8 homeassistant tests script
displayName: 'Run flake8'
- job: 'Validate'
pool:
vmImage: 'ubuntu-latest'
container: $[ variables['PythonMain'] ]
steps:
- script: |
python -m venv venv
. venv/bin/activate
pip install .
displayName: 'Setup Env'
- script: |
. venv/bin/activate
python -m script.hassfest validate
displayName: 'Validate manifests'
- script: |
. venv/bin/activate
python script/gen_requirements_all.py validate
displayName: 'requirements_all validate'
- stage: 'Tests'
dependsOn:
- 'Overview'
jobs:
- job: 'PyTests'
- job: 'PyTest'
pool:
vmImage: 'ubuntu-latest'
strategy: