-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
39 lines (39 loc) · 1.71 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
jobs:
- job: Build
pool:
vmImage: 'vs2017-win2016'
timeoutInMinutes: 240
steps:
- script: |
choco sources add -n=roswin -s https://roswin.azurewebsites.net/api/v2/ --priority 1
choco upgrade ros-melodic-desktop_full -y
displayName: 'Install ROS (melodic.desktop_full)'
- script: |
call "C:\opt\ros\melodic\x64\setup.bat"
displayName: 'Install rosdep (vcpkg-dev)'
- script: |
call "C:\opt\ros\melodic\x64\setup.bat"
md "%Build_StagingDirectory%\catkin_ws\src"
wstool init "%Build_StagingDirectory%\catkin_ws\src"
wstool merge -t "%Build_StagingDirectory%\catkin_ws\src" kobuki.rosinstall
wstool update -t "%Build_StagingDirectory%\catkin_ws\src"
displayName: 'Initialize kobuki workspace'
- script: |
pushd "%Build_StagingDirectory%\catkin_ws"
git clone https://github.com/seanyen/vcpkg -b vcpkg_ros
pushd vcpkg
call "bootstrap-vcpkg.bat"
displayName: 'Setup vcpkg (kobuki-dev)'
- script: |
call "C:\opt\ros\melodic\x64\setup.bat"
pushd "%Build_StagingDirectory%\catkin_ws\vcpkg"
rosdep update
rosdep install --from-paths "%Build_StagingDirectory%\catkin_ws" --ignore-src -r -y
displayName: 'Install dependency with rosdep'
- script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\opt\ros\melodic\x64\setup.bat"
pushd "%Build_StagingDirectory%\catkin_ws"
set "CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%Build_StagingDirectory%\catkin_ws\vcpkg\installed\x64-windows"
catkin_make_isolated --only-pkg-with-deps kobuki --install -DPYTHON_EXECUTABLE=c:/opt/python27amd64/python.exe
displayName: 'Build kobuki workspace'