-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
75 lines (62 loc) · 1.83 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
resources:
containers:
- container: lib7842image
image: "theol0403/lib7842-image:latest"
jobs:
- job: Build
timeoutInMinutes: 30
pool:
vmImage: "ubuntu-latest"
container: lib7842image
steps:
- checkout: self
submodules: true
- bash: |
make -j4
make template
mkdir -p artifacts
cp *.zip artifacts
displayName: Build Template
- task: PublishPipelineArtifact@0
inputs:
targetPath: artifacts
artifactName: template
condition: succeeded()
displayName: "Publish Template"
- bash: |
make
displayName: Build Arm Binaries
- bash: |
cd test/
make
mkdir testBinary
cp ./bin/main testBinary
displayName: Build Tests
- task: PublishPipelineArtifact@0
inputs:
targetPath: test/testBinary
artifactName: test
condition: succeeded()
displayName: "Publish Tests"
- bash: |
valgrind --tool=memcheck --leak-check=full --leak-resolution=med --show-leak-kinds=all --undef-value-errors=yes --track-origins=yes --show-reachable=no ./test/bin/main
displayName: "Run Valgrind"
continueOnError: true
- bash: |
./test/bin/main
displayName: Run Tests
- bash: |
./cppCheck.sh
displayName: "Run CppCheck"
condition: always()
- bash: |
valgrind --tool=callgrind --error-exitcode=0 ./test/bin/main
mkdir -p callgrindOut
cp callgrind.out.* callgrindOut
displayName: "Run Callgrind"
- task: PublishPipelineArtifact@0
inputs:
targetPath: callgrindOut
artifactName: callgrind
condition: succeeded()
displayName: "Publish Callgrind"