genalog/devops/nightly.yml

66 строки
1.7 KiB
YAML
Исходник Обычный вид История

2021-07-07 23:31:36 +03:00
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# ---------------------------------------------------------
2021-01-28 05:03:21 +03:00
name: $(Date:yyyyMMdd).$(Rev:r)
2021-01-28 05:36:44 +03:00
trigger: none # nightly build is scheduled once per day
2021-01-28 18:18:06 +03:00
pr: none
2021-01-28 05:56:36 +03:00
variables:
- group: azureResourceKeys
2021-01-28 05:03:21 +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 06:08:29 +03:00
- template: templates/base/run-linter.yml
parameters:
pyVersion: '3.6'
- task: ComponentGovernanceComponentDetection@0
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']
2021-01-28 06:08:29 +03:00
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:
2021-02-02 21:59:01 +03:00
pyVersions: ['3.6', '3.7', '3.8']
testTypes: ['e2e']
imageOSs: ['ubuntu-18.04'] # 'windows-latest', 'macos-latest' are not supported
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
2021-01-28 05:36:44 +03:00
- stage: publish_artifacts
jobs:
2021-01-28 06:08:29 +03:00
- job: archive_wheel_and_sdist
pool:
vmImage: 'ubuntu-latest'
steps:
- template: templates/build_wheel_n_sdist.yml
2021-01-28 06:43:00 +03:00
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.SourcesDirectory)/dist
ArtifactName: distribution_artifacts
publishLocation: 'Container'
displayName: 'Publish wheel and sdist'