forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
110 lines (101 loc) · 2.84 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
trigger:
- main
- master
- staging/*
- 20*
pr:
- main
- master
- 20*
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: sync_branches_with_main
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables.isMain, true))
variables:
BUILD_TYPE: sync_branches_with_main
MAIN_BRANCH: $[ variables['Build.SourceBranchName'] ]
CI: true
steps:
- checkout: self
fetchDepth: 50
clean: true
persistCredentials: true
- script: ./ci/travis/run-build.sh
displayName: 'Sync Branches With Main Branch'
- job: checkpatch
condition: eq(variables['Build.Reason'], 'PullRequest')
variables:
BUILD_TYPE: checkpatch
TARGET_BRANCH: $[ variables['System.PullRequest.TargetBranch'] ]
COMMIT: $[ variables['Build.SourceVersion'] ]
REPO_URL: $[ variables['Build.Repository.Uri'] ]
steps:
- checkout: none
- script: |
set -ex
git init
git remote add origin ${REPO_URL}
git fetch --filter=tree:0 --no-tags origin ${COMMIT}
git checkout --progress --force ${COMMIT}
./ci/travis/run-build.sh
displayName: 'Checkpatch Script'
- job: check_is_new_adi_driver_dual_licensed
condition: eq(variables['Build.Reason'], 'PullRequest')
variables:
BUILD_TYPE: check_is_new_adi_driver_dual_licensed
TARGET_BRANCH: $[ variables['System.PullRequest.TargetBranch'] ]
steps:
- checkout: self
fetchDepth: 50
clean: true
- script: ./ci/travis/run-build.sh
displayName: 'Check Is New ADI Driver & Dual Licensed'
- job: dtb_build_test
variables:
BUILD_TYPE: dtb_build_test
DTS_FILES: "arch/arm/boot/dts/zynq-*.dts
arch/arm/boot/dts/socfpga_*.dts
arch/arm64/boot/dts/xilinx/zynqmp-*.dts
arch/microblaze/boot/dts/*.dts
arch/nios2/boot/dts/*.dts"
steps:
- checkout: self
fetchDepth: 1
clean: true
- script: ./ci/travis/run-build.sh
displayName: 'Device-Tree Build Test'
- job: BuildDockerized
strategy:
matrix:
zynq_adi_default:
DEFCONFIG: zynq_xcomm_adv7511_defconfig
ARCH: arm
IMAGE: uImage
CHECK_ALL_ADI_DRIVERS_HAVE_BEEN_BUILT: 1
socfpga_adi_default:
DEFCONFIG: socfpga_adi_defconfig
ARCH: arm
IMAGE: zImage
CHECK_ALL_ADI_DRIVERS_HAVE_BEEN_BUILT: 1
zynqmp_adi_default:
DEFCONFIG: adi_zynqmp_defconfig
ARCH: arm64
IMAGE: Image
CHECK_ALL_ADI_DRIVERS_HAVE_BEEN_BUILT: 1
zynq_pluto:
DEFCONFIG: zynq_pluto_defconfig
ARCH: arm
IMAGE: uImage
zynq_m2k:
DEFCONFIG: zynq_m2k_defconfig
ARCH: arm
IMAGE: uImage
steps:
- checkout: self
fetchDepth: 1
clean: true
- script: ./ci/travis/run-build-docker.sh
displayName: "Build test for '$(DEFCONFIG)'"