Skip to content

Commit 3ed8bea

Browse files
committed
(travis) also install and build msg pkgs
1 parent df8922c commit 3ed8bea

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.ci/get_message_packages.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#! /usr/bin/env python3
2+
3+
import os
4+
import sys
5+
6+
7+
if len(sys.argv) >= 2:
8+
skip_pkgs = set(sys.argv[1:])
9+
else:
10+
skip_pkgs = set()
11+
12+
system_dir = os.getenv("TUE_SYSTEM_DIR")
13+
packages = [f.path for f in os.scandir(os.path.join(system_dir, "src")) if f.is_dir()]
14+
15+
msg_pkgs = set()
16+
17+
for pkg_path in packages:
18+
pkg = os.path.split(pkg_path)[-1]
19+
for msg_type in ["action", "msg", "srv"]:
20+
if os.path.isdir(os.path.join(pkg_path, msg_type)):
21+
msg_pkgs.add(pkg)
22+
break
23+
24+
print("\n".join(msg_pkgs.difference(skip_pkgs)))
25+
26+
27+
28+
29+

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ install:
66
- source <(wget -O - https://raw.githubusercontent.com/tue-robotics/tue-env/master/installer/bootstrap.bash)
77
- git -C ~/.tue checkout feature/ros_deps
88
- tue-get install tue-documentation-github --no-ros-deps --doc-depend --branch=fix/docs
9-
- tue-get install ros-python_orocos_kdl # Needs to be installed fully as it needs to be build to generate docs
9+
- MSG_PKGS=($(./.ci/get_message_packages.py costmap_2d))
10+
- MSG_TARGETS=(${MSG_PKGS[@]/#/ros-})
11+
- tue-get install ros-python_orocos_kdl ${MSG_TARGETS[@]} # Needs to be installed fully as it needs to be build to generate docs
1012
- export ROS_PACKAGE_PATH=""
1113

1214
script:
13-
- tue-make python_orocos_kdl # Needs to be build to generate docs
15+
- tue-make python_orocos_kdl ${MSG_PKGS[@]} # Needs to be build to generate docs
1416
- source ~/.tue/setup.bash # Source the workspace
1517
- tue-make-documentation
1618

0 commit comments

Comments
 (0)