forked from analogdevicesinc/iio-oscilloscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
118 lines (114 loc) · 3.27 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
111
112
113
114
115
116
117
118
variables:
libiioPipelineId: 9
libad9361iioPipelineId: 10
trigger:
- main
- master
- staging/*
- 20*
pr:
- main
- master
- 20*
jobs:
- job: LinuxBuilds
strategy:
matrix:
centos_8_x86_64:
imageName: 'ubuntu-latest'
OS_TYPE: 'centos_docker'
OS_VERSION: centos8
artifactName: 'Linux-CentOS-8-x86_64'
PACKAGE_TO_INSTALL: 'build/*.rpm'
ubuntu_18_04_x86_64:
imageName: 'ubuntu-latest'
OS_TYPE: 'ubuntu_docker'
OS_VERSION: bionic
artifactName: 'Linux-Ubuntu-18.04-x86_64'
PACKAGE_TO_INSTALL: 'build/*.deb'
ubuntu_20_04_x86_64:
imageName: 'ubuntu-latest'
OS_TYPE: 'ubuntu_docker'
OS_VERSION: focal
artifactName: 'Linux-Ubuntu-20.04-x86_64'
PACKAGE_TO_INSTALL: 'build/*.deb'
debian_buster_arm32v7:
imageName: 'ubuntu-latest'
OS_TYPE: 'arm32v7/debian_docker'
OS_VERSION: 'buster'
artifactName: 'Linux-Debian-Buster-ARM'
PACKAGE_TO_INSTALL: 'build/*.deb'
debian_buster_arm64v8:
imageName: 'ubuntu-latest'
OS_TYPE: 'arm64v8/debian_docker'
OS_VERSION: 'buster'
artifactName: 'Linux-Debian-Buster-ARM64'
PACKAGE_TO_INSTALL: 'build/*.deb'
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 1
clean: true
- task: DownloadPipelineArtifact@2
displayName: 'Get libiio artifacts'
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libiioPipelineId)
artifact: '$(artifactName)'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/build/'
- task: DownloadPipelineArtifact@2
displayName: 'Get libad9361-iio artifacts'
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libad9361iioPipelineId)
artifact: '$(artifactName)'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/build/'
- script: ./CI/travis/before_install_linux
displayName: "Install Dependencies"
- script: ./CI/travis/make_linux
displayName: "Build"
- job: macOSBuilds
strategy:
matrix:
macOS_10_15:
imageName: 'macOS-10.15'
artifactName: 'macOS-10.15'
pool:
vmImage: $(imageName)
variables:
PACKAGE_TO_INSTALL: 'build/*.pkg'
steps:
- checkout: self
fetchDepth: 1
clean: true
- task: DownloadPipelineArtifact@2
displayName: 'Get libiio artifacts'
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libiioPipelineId)
artifact: '$(artifactName)'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/build/'
- task: DownloadPipelineArtifact@2
displayName: 'Get libad9361-iio artifacts'
inputs:
source: 'specific'
project: '$(System.TeamProjectId)'
pipeline: $(libad9361iioPipelineId)
artifact: '$(artifactName)'
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
path: '$(Agent.BuildDirectory)/s/build/'
- script: ./CI/travis/before_install_darwin
displayName: "Install Dependencies"
- script: ./CI/travis/make_darwin
displayName: "Build"