-
Notifications
You must be signed in to change notification settings - Fork 311
/
Copy pathazure-pipelines.yml
118 lines (103 loc) · 3.59 KB
/
azure-pipelines.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Azure build pipelines for Procdump-for-Linux
trigger:
branches:
include:
- release/*
exclude:
- dev/*
- test/*
pr:
- master
resources:
repositories:
- repository: ProcDump
type: github
endpoint: sysinternals
name: Microsoft/ProcDump-for-Linux
- repository: obtemplates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@obtemplates
parameters:
globalSdl:
tsa:
enabled: false
policheck:
break: true
stages:
- stage: "Build_Run_Tests"
jobs:
- job: "ProcDump_Build_ARM64_Run_Tests"
pool:
type: linux
hostArchitecture: arm64
variables:
LinuxContainerImage: 'mcr.microsoft.com/mirror/docker/library/ubuntu:20.04'
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
steps:
- script: |
DEBIAN_FRONTEND=noninteractive apt -y update && apt install rsyslog -y
rm -f /run/rsyslogd.pid
service rsyslog start || true
displayName: 'Enable syslog'
- script: |
DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" sudo
chmod +x .devcontainer/install-ubuntu-dependencies.sh
.devcontainer/install-ubuntu-dependencies.sh
displayName: "Install pre-reqs for Ubuntu"
- script: |
clang --version
clang++ --version
gcc --version
displayName: 'List compiler versions'
- template: templates/build.yaml@ProcDump
- script: |
cd procdump_build/tests/integration
./run.sh
displayName: 'Run unit tests'
- job: "ProcDump_Build_AMD64_Run_Tests"
pool:
type: linux
variables:
LinuxContainerImage: 'mcr.microsoft.com/mirror/docker/library/ubuntu:20.04'
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
steps:
- script: |
DEBIAN_FRONTEND=noninteractive apt -y update && apt install rsyslog -y
rm -f /run/rsyslogd.pid
service rsyslog start || true
displayName: 'Enable syslog'
- script: |
DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" sudo
chmod +x .devcontainer/install-ubuntu-dependencies.sh
.devcontainer/install-ubuntu-dependencies.sh
displayName: "Install pre-reqs for Ubuntu"
- script: |
clang --version
clang++ --version
gcc --version
displayName: 'List compiler versions'
- template: templates/build.yaml@ProcDump
- script: |
cd procdump_build/tests/integration
./run.sh
displayName: 'Run unit tests'
- job: "ProcDump_Build_MACOS_Run_Tests"
pool:
type: linux
isCustom: true
name: Azure Pipelines
vmImage: 'macOS-latest'
variables:
ob_outputDirectory: '$(Build.SourcesDirectory)/out'
steps:
- script: |
sw_vers
displayName: 'Diagnostics'
- template: templates/build.yaml@ProcDump
- script: |
cd procdump_build/tests/integration
sudo ./run.sh
displayName: 'Run unit tests'