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

test rosbuild on travis #8

Merged
merged 39 commits into from
Mar 7, 2014

Conversation

garaemon
Copy link
Member

@garaemon garaemon commented Mar 6, 2014

test following patterns:

  • catkin/hydro
  • catkin/groovy
  • rosbuild/groovy

however, a lot of package are deprecated with rosbuild/groovy environment.
for example, roseus_tutorials depends on a lot of deprecated packages.
So I didn't check roseus_tutorials.

pull req for #7

And by the pull req by @YoheiKakiuchi (#5),
this test will be passed.

see these build status:

smach_viewer is not listed on rosdep yet
@garaemon
Copy link
Member Author

garaemon commented Mar 6, 2014

When we use rosws intead of wstool, we need to do some tricks:

  • rosws merge /opt/ros/hydro/.rosinstall
  • rosws set --git the_package http://dummy.com

@garaemon
Copy link
Member Author

garaemon commented Mar 6, 2014

and also, I found that if we want to test rosbuild environment with some catkin packages which are not provided as apt packages, it's tough... (but possible)

@k-okada
Copy link
Member

k-okada commented Mar 6, 2014

jenkinsで走らせていた以下のコードが参考になるかもしれません...

set -x
sudo docker pull ubuntu || sudo docker pull ubuntu
sudo docker run -v /var/lib/jenkins:/workspace -w /workspace ubuntu:12.04 /bin/bash -c "$(cat <<EOL
set -x
sudo apt-get install -y wget
sudo sh -c 'echo deb http://packages.ros.org/$DEBIAN_REPOSITORY/ubuntu \`lsb_release -cs\` 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 build-essential python-catkin-pkg python-rosdep python-wstool python-rosinstall ros-$ROS_DISTRO-rosmake ros-$ROS_DISTRO-catkin ros-$ROS_DISTRO-ros
sudo rosdep init
rosdep update
if [ `echo $GITHUB_REPOSITORY | grep gazebo -c` -eq 1 ]; then
  sudo sh -c 'echo "deb http://packages.osrfoundation.org/drc/ubuntu \`lsb_release -cs\` main" > /etc/apt/sources.list.d/drc-latest.list'
  wget http://packages.osrfoundation.org/drc.key -O - | sudo apt-key add -
  sudo apt-get update -qq
  sudo apt-get install -qq -y drcsim-$ROS_DISTRO ros-$ROS_DISTRO-common-tutorials
fi
if [ $BUILD_TOOL == rosbuild ]; then
  mkdir -p ~/ros
  cd ~/ros
  rosws init .
  rosws merge /opt/ros/$ROS_DISTRO
  if [ $FULL_SOURCE == full_source ]; then
    rosws merge https://raw.github.com/start-jsk/$GITHUB_REPOSITORY/master/.rosinstall -y
  else
    rosws set $GITHUB_REPOSITORY https://github.com/start-jsk/$GITHUB_REPOSITORY --git -y
  fi
  rosws update
  source setup.bash
  rosdep install -v -r -n --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
  if [ $ROS_DISTRO == groovy ]; then
    rosdep    keys    -r -n --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y | grep pr2_controllers_msgs && sudo apt-get install -qq -y ros-$ROS_DISTRO-pr2-controllers ros-$ROS_DISTRO-diagnostics-monitors ros-$ROS_DISTRO-pr2-gui
  fi
  rosmake -a --profile --status-rate=0
else
  mkdir -p ~/catkin_ws/src
  cd ~/catkin_ws/src
  catkin_init_workspace
  wstool init .
  if [ $FULL_SOURCE == full_source ]; then
    rosws merge https://raw.github.com/start-jsk/$GITHUB_REPOSITORY/master/.rosinstall -y
  else
    wstool set $GITHUB_REPOSITORY https://github.com/start-jsk/$GITHUB_REPOSITORY --git -y
  fi
  wstool update
  # ???
  find . -name manifest.xml -exec mv \{} \{}.bak \;
  cd ../
  source /opt/ros/$ROS_DISTRO/setup.bash
  rosdep install -v -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
  if [ $ROS_DISTRO == groovy ]; then
    rosdep    keys    -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y | grep pr2_controllers_msgs && sudo apt-get install -qq -y ros-$ROS_DISTRO-pr2-controllers ros-$ROS_DISTRO-diagnostics-monitors ros-$ROS_DISTRO-pr2-gui
  fi
  catkin_make
fi
EOL
)"

@garaemon
Copy link
Member Author

garaemon commented Mar 6, 2014

travis fail is OK

@garaemon
Copy link
Member Author

garaemon commented Mar 6, 2014

ros-$ROS_DISTRO-common-tutorialsとros-$ROS_DISTRO-pr2-controllersを特別扱いしてるあたりは
同じ問題に遭遇してますね

YoheiKakiuchi added a commit to YoheiKakiuchi/jsk_roseus that referenced this pull request Mar 6, 2014
@YoheiKakiuchi
Copy link
Member

manifest.xmlを直したものだと、groovy/hydro - rosbuild/catkinでtravisは成功しているようです。
YoheiKakiuchi@a392a05

garaemon added a commit that referenced this pull request Mar 7, 2014
@garaemon garaemon merged commit 2ec326d into jsk-ros-pkg:master Mar 7, 2014
@garaemon
Copy link
Member Author

garaemon commented Mar 7, 2014

マージしても、垣内さんのPRの方は再ビルドされないのかな

@garaemon garaemon deleted the rosbuild-on-travis-id-5 branch March 7, 2014 04:00
k-okada added a commit to k-okada/jsk_roseus that referenced this pull request Mar 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants