-
Notifications
You must be signed in to change notification settings - Fork 307
/
azure-pipelines.yml
85 lines (71 loc) · 2.17 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
# Azure build pipelines for Procdump-for-Linux
trigger:
branches:
include:
- release/*
exclude:
- dev/*
- test/*
pr:
- master
stages:
- stage: "Build"
jobs:
- job: "ProcDump_Build_Run_Unit_Tests"
pool:
vmImage: "ubuntu-20.04"
steps:
- script: |
clang --version
clang++ --version
gcc --version
displayName: 'List compiler versions'
- script: |
apt install rsyslog
rm -f /run/rsyslogd.pid
service rsyslog start || true
displayName: 'Enable syslog'
- script: |
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
- script: |
cd procdump_build/tests/integration
sudo ./run.sh
displayName: 'Run unit tests'
- script: |
mkdir $(Build.ArtifactStagingDirectory)/logs
cp /var/log/syslog $(Build.ArtifactStagingDirectory)/logs
cp /var/tmp/procdumpprofiler.log $(Build.ArtifactStagingDirectory)/logs
displayName: 'Copy log artifacts to staging'
condition: always()
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/logs/syslog'
ArtifactName: 'syslog'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/logs/procdumpprofiler.log'
ArtifactName: 'procdumpprofiler.log'
publishLocation: 'Container'
- job: "ProcDump_Build_Mac_Run_Unit_Tests"
pool:
vmImage: "macOS-latest"
steps:
- script: |
sw_vers
displayName: 'Diagnostics'
- template: templates/build.yaml
- script: |
cd procdump_build/tests/integration
sudo ./run.sh
displayName: 'Run unit tests'