forked from seanyen/kobuki_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
42 lines (42 loc) · 1.89 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
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 --pre
displayName: 'Install ROS (melodic.desktop_full)'
# - script: |
# call "C:\opt\ros\melodic\x64\setup.bat"
# pip install -U --no-deps --force-reinstall -r requirements.txt
# 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"
copy 10-vcpkg.list C:\opt\ros\melodic\x64\etc\ros\rosdep\sources.list.d
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"
set
catkin_make_isolated --only-pkg-with-deps kobuki --install -DPYTHON_EXECUTABLE=c:/opt/python27amd64/python.exe
displayName: 'Build kobuki workspace'