2021-07-07 23:31:36 +03:00
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
|
2020-07-18 03:54:41 +03:00
|
|
|
name: $(Date:yyyyMMdd).$(Rev:r)
|
|
|
|
|
2021-01-28 05:56:36 +03:00
|
|
|
trigger: none # trigger only via pr
|
|
|
|
|
2021-01-28 05:06:14 +03:00
|
|
|
pr:
|
|
|
|
- main
|
|
|
|
|
2021-01-28 05:56:36 +03:00
|
|
|
variables:
|
2021-01-28 06:08:29 +03:00
|
|
|
- group: azureResourceKeys
|
2021-01-28 05:56:36 +03:00
|
|
|
|
2021-01-28 05:06:14 +03:00
|
|
|
stages:
|
2021-01-28 05:36:44 +03:00
|
|
|
- stage: static_analysis
|
|
|
|
jobs:
|
|
|
|
- job: flake8_linux_py36
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
2021-01-28 21:43:41 +03:00
|
|
|
- template: templates/base/run-linter.yml
|
|
|
|
parameters:
|
|
|
|
pyVersion: '3.6'
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
2021-01-28 05:06:14 +03:00
|
|
|
|
2021-01-28 05:36:44 +03:00
|
|
|
- stage: unit_tests
|
|
|
|
dependsOn: static_analysis
|
|
|
|
jobs:
|
2021-01-28 06:08:29 +03:00
|
|
|
- template: templates/run-tests-on-multiple-os-py.yml
|
|
|
|
parameters:
|
2021-01-28 06:10:02 +03:00
|
|
|
pyVersions: ['3.6', '3.7', '3.8']
|
|
|
|
testTypes: ['unit', 'io']
|
2021-02-02 21:59:01 +03:00
|
|
|
imageOSs: ['ubuntu-18.04'] # 'windows-latest', 'macos-latest' are not supported
|
2021-01-28 05:36:44 +03:00
|
|
|
|
|
|
|
- stage: e2e_tests
|
|
|
|
dependsOn: static_analysis
|
|
|
|
jobs:
|
2021-01-28 06:08:29 +03:00
|
|
|
- template: templates/run-tests-on-multiple-os-py.yml
|
|
|
|
parameters:
|
|
|
|
pyVersions: ['3.6']
|
2021-02-02 21:59:01 +03:00
|
|
|
testTypes: ['e2e']
|
|
|
|
imageOSs: ['ubuntu-18.04'] # 'windows-latest', 'macos-latest' are not supported
|
2021-01-28 05:06:14 +03:00
|
|
|
|
2021-01-28 05:36:44 +03:00
|
|
|
- stage: collect_final_code_coverage
|
|
|
|
dependsOn:
|
2021-01-28 06:08:29 +03:00
|
|
|
- unit_tests
|
|
|
|
- e2e_tests
|
2021-01-28 05:36:44 +03:00
|
|
|
jobs:
|
2021-01-28 06:08:29 +03:00
|
|
|
- template: templates/merge-cov-reports.yml
|