forked from microsoft/ros_azure_iothub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
51 lines (48 loc) · 1.46 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
resources:
repositories:
- repository: templates
type: github
name: ms-iot/rosonwindows_ci
endpoint: microsoft
pr:
branches:
include:
- melodic-devel
schedules:
- cron: "0 0 * * *" # Daily midnight build
branches:
include:
- melodic-devel
jobs:
- template: build.yml@templates # Template reference
parameters:
rosdistro: melodic
metapackage: desktop
platforms:
- linux
- windows
pre_build:
- script: |
pushd src
git clone https://github.com/facontidavide/ros_type_introspection
displayName: Checkout ros_type_introspection (Windows)
condition: eq(variables['Agent.OS'], 'Windows_NT')
workingDirectory: '$(Build.StagingDirectory)'
- script: |
pushd c:\opt\vcpkg
git fetch
git checkout master
git pull
call bootstrap-vcpkg.bat
vcpkg.exe upgrade --no-dry-run
displayName: Install Latest Azure IoT C SDK (Windows)
condition: eq(variables['Agent.OS'], 'Windows_NT')
workingDirectory: '$(Build.StagingDirectory)'
- script: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:aziotsdklinux/ppa-azureiot
sudo apt update
sudo apt install -y azure-iot-sdk-c-dev
displayName: Install Azure IoT C SDK (Linux)
condition: eq(variables['Agent.OS'], 'Linux')