Skip to content

Commit

Permalink
Test building with OpenCV3
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Apr 27, 2016
1 parent 66fb7e2 commit 068b4ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -25,5 +25,6 @@ env:
matrix:
- ROS_DISTRO=hydro USE_DEB=false
- ROS_DISTRO=indigo USE_DEB=true
- ROS_DISTRO=indigo USE_DEB=true BEFORE_SCRIPT='$CI_SOURCE_PATH/.travis_before_script_opencv3.bash'
- ROS_DISTRO=jade USE_DEB=true
script: source .travis/travis.sh
25 changes: 25 additions & 0 deletions .travis_before_script_opencv3.bash
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

######################################################
# Install OpenCV 3
######################################################
sudo -H apt-get install -y -q -qq ros-$ROS_DISTRO-opencv3


######################################################
# Setup dependencies to rebuild from source
######################################################
sudo -H pip install -q rosinstall_generator

rosinstall_generator --tar --rosdistro $ROS_DISTRO \
cv_bridge \
image_geometry \
image_transport \
>> /tmp/$$.rosinstall

cd ~/ros/ws_$REPOSITORY_NAME/src
wstool merge /tmp/$$.rosinstall
wstool up -j3 \
vision_opencv/cv_bridge \
vision_opencv/image_geometry \
image_common/image_transport

0 comments on commit 068b4ec

Please sign in to comment.