-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathazure-pipelines.yaml
64 lines (52 loc) · 1.45 KB
/
azure-pipelines.yaml
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
name: $(Date:yyyyMMdd).$(Rev:r)
trigger:
batch: true
branches:
include: [ "*" ]
paths:
exclude: [ "README.md" ]
jobs:
- job: build
displayName: "Build"
pool:
vmImage: "ubuntu-latest"
workspace:
clean: all
timeoutInMinutes: 10
steps:
- checkout: 'self'
clean: true
submodules: 'recursive'
- bash: |
sudo apt update
sudo apt install build-essential clang llvm libelf-dev gcc-multilib linux-headers-$(uname -r)
displayName: 'Install dependencies'
- bash: |
make DEBUG=1 all
displayName: 'Build (debug)'
- bash: |
rm -r ${BUILD_ARTIFACTSTAGINGDIRECTORY}/*
cp build/* ${BUILD_ARTIFACTSTAGINGDIRECTORY}
displayName: 'Copy artifacts (debug)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts (debug)'
inputs:
artifactName: 'debug'
- bash: |
sudo -E scripts/ci_test.sh
displayName: 'Test (debug)'
- bash: |
rm -r build/*
make all
displayName: 'Build (production)'
- bash: |
rm -r ${BUILD_ARTIFACTSTAGINGDIRECTORY}/*
cp build/* ${BUILD_ARTIFACTSTAGINGDIRECTORY}
displayName: 'Copy artifacts (production)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts (production)'
inputs:
artifactName: 'production'
- bash: |
sudo -E scripts/ci_test.sh
displayName: 'Test (production)'