forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (43 loc) · 1002 Bytes
/
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
trigger:
- main
- master
- staging/*
- 20*
pr:
- main
- master
- 20*
variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
runCondition: true
targetBranch: $[ variables['System.PullRequest.TargetBranchName'] ]
jobs:
- job: LinuxBuilds
strategy:
matrix:
astyle:
imageName: 'ubuntu-latest'
BUILD_TYPE: astyle
TARGET_BRANCH: '$(targetBranch)'
cppcheck:
imageName: 'ubuntu-latest'
BUILD_TYPE: cppcheck
TARGET_BRANCH: '$(targetBranch)'
drivers:
imageName: 'ubuntu-latest'
BUILD_TYPE: drivers
doxygen:
imageName: 'ubuntu-latest'
BUILD_TYPE: doxygen
UPDATE_GH_DOCS: 0
pool:
vmImage: $(imageName)
steps:
- checkout: self
condition: eq(variables.runCondition, true)
fetchDepth: 50
clean: true
persistCredentials: true
- script: ./ci/run_build.sh
condition: eq(variables.runCondition, true)
displayName: 'Run $(BUILD_TYPE)'