-
Notifications
You must be signed in to change notification settings - Fork 529
/
azure-pipelines-dash.yml
75 lines (67 loc) · 1.91 KB
/
azure-pipelines-dash.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
pr:
- dash
trigger:
batch: true
branches:
include:
- dash
# this part need to be set in UI
schedules:
- cron: "0 0 * * 6"
displayName: Weekly build
branches:
include:
- dash
always: true
variables:
- name: BUILD_BRANCH
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
value: $(System.PullRequest.TargetBranch)
${{ else }}:
value: $(Build.SourceBranchName)
stages:
- stage: Build
jobs:
- template: .azure-pipelines/build-template.yml
parameters:
arch: amd64
sonic_slave: sonic-slave-bullseye
swss_common_artifact_name: sonic-swss-common
swss_common_branch: master
artifact_name: sonic-swss
archive_pytests: true
archive_gcov: true
sairedis_artifact_name: sonic-sairedis
sairedis_artifact_branch: master
common_lib_artifact_name: common-lib
common_lib_artifact_branch: master
- stage: BuildDocker
dependsOn: Build
condition: succeeded('Build')
jobs:
- template: .azure-pipelines/build-docker-sonic-vs-template.yml
parameters:
buildimage_artifact_branch: master
swss_common_artifact_name: sonic-swss-common
swss_common_branch: master
swss_artifact_name: sonic-swss
artifact_name: docker-sonic-vs
sairedis_artifact_name: sonic-sairedis
sairedis_artifact_branch: master
- stage: Test
dependsOn: BuildDocker
condition: succeeded('BuildDocker')
jobs:
- template: .azure-pipelines/test-docker-sonic-vs-template.yml
parameters:
log_artifact_name: log
gcov_artifact_name: sonic-gcov
sonic_slave: sonic-slave-bullseye
swss_common_branch: master
archive_gcov: true
num_ports: 2
run_tests_pattern: test_dash_*.py