Skip to content

Commit 0e2bec9

Browse files
committed
Added CI for Windows
1 parent 960fe8a commit 0e2bec9

2 files changed

Lines changed: 58 additions & 20 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Build status
66

77
| Target | Status |
88
|----------|--------|
9-
| **JRE** | [![Build Status](https://travis-matrix-badges.herokuapp.com/repos/esteve/ros2_java/branches/master/1)](https://travis-ci.org/esteve/ros2_java) |
10-
| **Android** | [![Build Status](https://travis-matrix-badges.herokuapp.com/repos/esteve/ros2_java/branches/master/2)](https://travis-ci.org/esteve/ros2_java) |
9+
| **Ubuntu Xenial (OpenJDK)** | [![Build Status](https://travis-matrix-badges.herokuapp.com/repos/esteve/ros2_java/branches/master/1)](https://travis-ci.org/esteve/ros2_java) |
10+
| **Ubuntu Xenial (Android)** | [![Build Status](https://travis-matrix-badges.herokuapp.com/repos/esteve/ros2_java/branches/master/2)](https://travis-ci.org/esteve/ros2_java) |
11+
| **Windows Desktop (JDK)** | [![Build status](https://ci.appveyor.com/api/projects/status/7syqscd42yd3f7do?svg=true)](https://ci.appveyor.com/project/esteve/ros2-java) |
1112

1213
Introduction
1314
------------

appveyor.yml

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,55 @@
1-
services:
2-
- docker
3-
4-
os:
5-
- Ubuntu
6-
7-
build: off
8-
9-
environment:
10-
matrix:
11-
- DOCKER_TAG: java
12-
SCRIPT_PATH: build_java.sh
13-
14-
- DOCKER_TAG: android
15-
SCRIPT_PATH: build_android.sh
16-
17-
test_script:
18-
- docker run -v $APPVEYOR_BUILD_FOLDER/ci-scripts:/ci-scripts -e TRAVIS=1 -e ROS2_JAVA_BRANCH=$APPVEYOR_REPO_BRANCH --rm esteve/ros2-ubuntu-xenial-travisci:$DOCKER_TAG sh /ci-scripts/$SCRIPT_PATH
1+
services:
2+
- docker
3+
4+
os:
5+
- Visual Studio 2017
6+
7+
build: off
8+
9+
environment:
10+
PYTHON: C:\Python36-x64
11+
12+
before_build:
13+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%path%
14+
- pip install vcstool
15+
- pip install -U catkin_pkg EmPy pyparsing pyyaml
16+
17+
build_script:
18+
- md \dev\ament\src
19+
- cd \dev\ament
20+
- curl -sk https://raw.githubusercontent.com/esteve/ament_java/master/ament_java.repos -o ament_java.repos
21+
- vcs import src < ament_java.repos
22+
- python src\ament\ament_tools\scripts\ament.py build --cmake-args -G "Visual Studio 15 2017 Win64" --
23+
- call install\local_setup.bat
24+
25+
- md \dev\ros2\src
26+
- cd \dev\ros2
27+
- curl -sk https://raw.githubusercontent.com/esteve/ros2_java/%APPVEYOR_REPO_BRANCH%/ros2_java_desktop.repos -o ros2_java_desktop.repos
28+
- vcs import src < ros2_java_desktop.repos
29+
- cd \dev\ros2\src\ros2_java
30+
- vcs custom --git --args checkout %APPVEYOR_REPO_BRANCH% || VER>NUL
31+
- cd \dev\ros2
32+
33+
- ament build ^
34+
--parallel ^
35+
--skip-packages ^
36+
actionlib_msgs ^
37+
diagnostic_msgs ^
38+
geometry_msgs ^
39+
nav_msgs ^
40+
sensor_msgs ^
41+
shape_msgs ^
42+
stereo_msgs ^
43+
trajectory_msgs ^
44+
visualization_msgs ^
45+
--cmake-args ^
46+
-G "Visual Studio 15 2017 Win64" ^
47+
-DTHIRDPARTY=ON ^
48+
-DINSTALL_EXAMPLES=OFF ^
49+
-DCMAKE_FIND_ROOT_PATH="\dev\ament\install;\dev\ros2\install" ^
50+
--
51+
52+
after_build:
53+
- 7z a ros2_java.zip \dev\ros2\install
54+
- 7z rn ros2_java.zip install ros2_java\install
55+
- appveyor PushArtifact ros2_java.zip

0 commit comments

Comments
 (0)