Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kinetic] Update Travis config to run on Ubuntu 16.04 via Docker. #49

Open
wants to merge 5 commits into
base: kinetic
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 19 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
sudo: required
dist: trusty
# Force travis to use its minimal image with default Python settings
language: generic
# This config file for Travis CI utilizes ros-industrial/industrial_ci package.
# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst
sudo: required
dist: trusty
language: generic
compiler:
- gcc
notifications:
email:
on_failure: always
recipients:
- [email protected] # Change this to yours should you copy this file.
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
matrix:
- CI_ROS_DISTRO="indigo"
# - CI_ROS_DISTRO="jade"
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y python-rosdep python-catkin-tools
- sudo rosdep init
- rosdep update
# Use rosdep to install all dependencies (including ROS itself)
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
- USE_DEB=true ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu
- USE_DEB=true ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu
- ROS_DISTRO="kinetic" PRERELEASE=true
matrix:
allow_failures:
- env: ROS_DISTRO="kinetic" PRERELEASE=true
before_script:
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS
- catkin init
# Enable install space
#- catkin config --install
# Build [and Install] packages
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release
# Build tests
- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
# Run tests
- catkin run_tests
- .ci_config/travis.sh
16 changes: 8 additions & 8 deletions face_detector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ if(CATKIN_ENABLE_TESTING)
DESTINATION ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/test
MD5 59126117e049e69d577b7ee27251a6f8)

add_rostest(test/wide-stereo_true_rtest.xml)
add_rostest(test/wide-stereo_false_rtest.xml)
# add_rostest(test/wide-stereo_true_rtest.xml)
# add_rostest(test/wide-stereo_false_rtest.xml)
add_rostest(test/rgbd_true_rtest.xml)
add_rostest(test/rgbd_false_rtest.xml)
add_rostest(test/narrow-stereo_true_rtest.xml)
add_rostest(test/narrow-stereo_false_rtest.xml)
add_rostest(test/action-wide_true_rtest.xml)
add_rostest(test/action-wide_false_rtest.xml)
add_rostest(test/action-rgbd_true_rtest.xml)
add_rostest(test/action-rgbd_false_rtest.xml)
# add_rostest(test/narrow-stereo_true_rtest.xml)
# add_rostest(test/narrow-stereo_false_rtest.xml)
# add_rostest(test/action-wide_true_rtest.xml)
# add_rostest(test/action-wide_false_rtest.xml)
# add_rostest(test/action-rgbd_true_rtest.xml)
# add_rostest(test/action-rgbd_false_rtest.xml)

endif()
1 change: 1 addition & 0 deletions face_detector/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<!-- <test_depend>image_geometry</test_depend> -->
<!-- <test_depend>actionlib_msgs</test_depend> -->
<!-- <test_depend>actionlib</test_depend> -->
<test_depend>stereo_image_proc</test_depend>

<!-- <export>
<cpp cflags="-I${prefix}/msg/cpp -I${prefix}/srv/cpp"/>
Expand Down
2 changes: 1 addition & 1 deletion face_detector/param/classifier.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
classifier_filename: /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml
classifier_filename: /opt/ros/kinetic/share/OpenCV-3.1.0-dev/haarcascades/haarcascade_frontalface_alt.xml
6 changes: 3 additions & 3 deletions face_detector/test/action-rgbd_false_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_action_rgbd_false" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector_action.rgbd.launch" />

<include file="$(find face_detector)/test/common_rtest.xml">
<arg name="expected_success" value="false" />
</include>
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
3 changes: 2 additions & 1 deletion face_detector/test/action-rgbd_true_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<launch>
<arg name="testnode_name" default="hztest_action_rgbd_true" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector_action.rgbd.launch" />

<include file="$(find face_detector)/test/common_rtest.xml" />
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
6 changes: 3 additions & 3 deletions face_detector/test/action-wide_false_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_action_wide_false" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector_action.wide.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml">
<arg name="expected_success" value="false" />
</include>
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
4 changes: 3 additions & 1 deletion face_detector/test/action-wide_true_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_action_wide_true" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector_action.wide.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml" />
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
35 changes: 26 additions & 9 deletions face_detector/test/common_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
<launch>
<arg name="expected_success" default="true" />
<arg name="hz" default="30.0" />
<arg name="hztest_duration" default="2.0" />
<arg name="hz_error" default="29.9" />
<arg name="RETRY_TEST" default="5" />
<arg name="testnode_name" default="hztest1" />
<arg name="topicname_hztest" default="face_detector/people_tracker_measurements_array" />

<param name ="use_sim_time" value="true" />

<group unless="$(arg expected_success)">
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/>
<param name="hztest1/hz" value="0.0" />
<node pkg="rosbag" type="play" name="play" args="--clock -l -r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/>

<test test-name="hztest_noface_$(arg testnode_name)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)">
<param name="topic" value="face_detector/people_tracker_measurements_array" />
<param name="hz" value="0.0" />
<param name="test_duration" value="$(arg hztest_duration)" />
</test>
</group>
<group if="$(arg expected_success)">
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/>
<param name="hztest1/hz" value="30.0" />
<param name="hztest1/hzerror" value="29.9" />
<node pkg="rosbag" type="play" name="play" args="--clock -l -r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/>

<test pkg="rostest" type="publishtest"
test-name="pubtest_detectedface" name="pubtest_detectedface" retry="$(arg RETRY_TEST)">
<rosparam subst_value="True">
topics:
- name: $(arg topicname_hztest)
timeout: 5
negative: False
</rosparam>
</test>
</group>

<param name="hztest1/topic" value="face_detector/people_tracker_measurements_array" />
<param name="hztest1/test_duration" value="15.0" />
<test test-name="hztest_test" pkg="rostest" type="hztest" name="hztest1" />
</launch>
6 changes: 3 additions & 3 deletions face_detector/test/narrow-stereo_false_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_narrow_stereo_false" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.narrow.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml">
<arg name="expected_success" value="false" />
</include>
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
3 changes: 2 additions & 1 deletion face_detector/test/narrow-stereo_true_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<launch>
<arg name="testnode_name" default="hztest_narrow_stereo_true" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.narrow.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml" />
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
15 changes: 11 additions & 4 deletions face_detector/test/rgbd_false_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_rgbd_false" />
<arg name="topicname_hztest" default="/face_detector/faces_cloud" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.rgbd.launch"/>
<include file="$(find face_detector)/launch/face_detector.rgbd.launch">
<arg name="camera" value="wide_stereo" />
<arg name="rgb_ns" value="right" />
<arg name="image_topic" value="image_raw" />
<arg name="depth_ns" value="right" />
<arg name="depth_topic" value="image_raw" />
</include>

<include file="$(find face_detector)/test/common_rtest.xml">
<arg name="expected_success" value="false" />
</include>
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
14 changes: 12 additions & 2 deletions face_detector/test/rgbd_true_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
<launch>
<arg name="hz" default="500.0" />
<arg name="hz_error" default="499.9" />
<arg name="testnode_name" default="hztest_rgbd_true" />
<arg name="topicname_hztest" default="/face_detector/faces_cloud" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.rgbd.launch"/>
<include file="$(find face_detector)/launch/face_detector.rgbd.launch">
<arg name="camera" value="wide_stereo" />
<arg name="rgb_ns" value="right" />
<arg name="image_topic" value="image_raw" />
<arg name="depth_ns" value="right" />
<arg name="depth_topic" value="image_raw" />
</include>

<include file="$(find face_detector)/test/common_rtest.xml" />
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
6 changes: 3 additions & 3 deletions face_detector/test/wide-stereo_false_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<launch>
<arg name="expected_success" value="false" />
<arg name="testnode_name" default="hztest_wide_stereo_false" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.wide.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml">
<arg name="expected_success" value="false" />
</include>
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>
3 changes: 2 additions & 1 deletion face_detector/test/wide-stereo_true_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<launch>
<arg name="testnode_name" default="hztest_wide_stereo_true" />

<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" />

<include file="$(find face_detector)/launch/face_detector.wide.launch"/>

<include file="$(find face_detector)/test/common_rtest.xml" />
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" />
</launch>