forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
45 lines (42 loc) · 954 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
trigger:
- main
- staging/*
- next_stable
- 20*
pr:
- main
- next_stable
- 20*
variables:
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
documentation:
imageName: 'ubuntu-latest'
BUILD_TYPE: documentation
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)'