forked from microsoft/Azure_Kinect_ROS_Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
107 lines (89 loc) · 3.15 KB
/
azure-pipelines.yml
File metadata and controls
107 lines (89 loc) · 3.15 KB
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
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
name: Azure_Kinect_ROS_Driver-$(SourceBranchName)-$(Date:yyyyMMdd)-$(Rev:rrr)
trigger:
batch: true
branches:
include:
- master
- develop
- melodic
pr:
autoCancel: true
branches:
include:
- master
- develop
- melodic
jobs:
- job: WindowsMelodic
displayName: Windows Melodic
pool:
vmImage: 'vs2017-win2016'
steps:
- checkout: self
clean: "all"
fetchDepth: 20
lfs: false
persistCredentials: true
submodules: true
path: catkin_ws\src\Azure_Kinect_ROS_Driver
# Install Chcolatey
- powershell: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install ROS
- powershell: |
choco source add -n=ros-win -s="https://roswin.azurewebsites.net/api/v2" --priority=1
choco upgrade ros-melodic-ros_base -y --execution-timeout=0
# Create a catkin workspace
- script: |
C:\opt\ros\melodic\x64\setup.bat
mkdir %BUILD_SOURCESDIRECTORY%\catkin_ws
mkdir %BUILD_SOURCESDIRECTORY%\catkin_ws\src
cd %BUILD_SOURCESDIRECTORY%\catkin_ws
catkin_make
displayName: Create Catkin Workspace
# Download and install the Azure Kinect Sensor SDK
- powershell: |
wget http://download.microsoft.com/download/E/B/D/EBDBB3C1-ED3F-4236-96D6-2BCB352F3710/Azure%20Kinect%20SDK%201.1.0.msi -OutFile $(Build.SourcesDirectory)\sdk.msi
$(Build.SourcesDirectory)\sdk.msi /passive
# Build the catkin workspace
- script: |
C:\opt\ros\melodic\x64\setup.bat
cd %BUILD_SOURCESDIRECTORY%\catkin_ws
catkin_make --force-cmake
displayName: Build ROS Driver Node
- job: LinuxMelodic
displayName: Linux Melodic
pool:
vmImage: 'ubuntu-16.04'
container:
image: ros:melodic-perception-bionic
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
steps:
- script: |
/tmp/docker exec -t -u 0 ci-container \
sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo"
displayName: Enable sudo
- checkout: self
clean: "all"
fetchDepth: 20
lfs: false
persistCredentials: true
submodules: true
path: catkin_ws/src/Azure_Kinect_ROS_Driver
# Download and install the Azure Kinect Sensor SDK
- bash: |
sudo apt-get -y install curl software-properties-common
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod
sudo apt-get update
echo libk4a1.1 libk4a1.1/accept-eula boolean true | sudo debconf-set-selections
echo libk4a1.1 libk4a1.1/accepted-eula-hash string 0f5d5c5de396e4fee4c0753a21fee0c1ed726cf0316204edda484f08cb266d76 | sudo debconf-set-selections -u
sudo apt-get -y install libk4a1.1-dev
displayName: Install the Azure Kinect Sensor SDK
# Build the catkin workspace
- bash: |
source /opt/ros/melodic/setup.bash
catkin_make --force-cmake
displayName: Build ROS Driver Node
workingDirectory: ../../