Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from 130s/impr/travis
[CI] Add ROS Kinetic, Lunar.
- Loading branch information
Showing
3 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
# 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 | ||
services: | ||
- docker | ||
language: generic | ||
compiler: | ||
- gcc | ||
notifications: | ||
email: | ||
recipients: | ||
- gm130s@gmail.com | ||
env: | ||
matrix: | ||
- USE_DEB=true ROS_DISTRO="indigo" REPOSITORY=http://packages.ros.org/ros/ubuntu | ||
- USE_DEB=true ROS_DISTRO="indigo" REPOSITORY=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="indigo" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- ROS_DISTRO="indigo" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="indigo" PRERELEASE=true | ||
- ROS_DISTRO="jade" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- ROS_DISTRO="jade" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="jade" PRERELEASE=true | ||
- ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="kinetic" PRERELEASE=true | ||
- ROS_DISTRO="lunar" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- ROS_DISTRO="lunar" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="lunar" PRERELEASE=true | ||
matrix: | ||
allow_failures: | ||
- env: USE_DEB=true ROS_DISTRO="jade" REPOSITORY=http://packages.ros.org/ros/ubuntu | ||
- env: USE_DEB=true ROS_DISTRO="jade" REPOSITORY=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- env: ROS_DISTRO="indigo" PRERELEASE=true # Run docker-based ROS prerelease test http://wiki.ros.org/bloom/Tutorials/PrereleaseTest Because we might not want to run prerelease test for all PRs, it's omitted from pass-fail criteria. | ||
- env: ROS_DISTRO="jade" PRERELEASE=true | ||
- env: ROS_DISTRO="kinetic" PRERELEASE=true | ||
- env: ROS_DISTRO="lunar" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- env: ROS_DISTRO="lunar" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- env: ROS_DISTRO="lunar" PRERELEASE=true | ||
install: | ||
- export CI_SOURCE_PATH=$(pwd) | ||
- export REPOSITORY_NAME=${PWD##*/} | ||
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME" | ||
- sudo sh -c "echo \"deb ${REPOSITORY} `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 python-rosdep python-catkin-tools ros-${ROS_DISTRO}-catkin | ||
- sudo rosdep init | ||
- rosdep update | ||
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config | ||
script: | ||
- mkdir -p ~/catkin_ws/src | ||
- cd ~/catkin_ws | ||
- ln -sf ${CI_SOURCE_PATH} src/${REPOSITORY_NAME} | ||
- if [ "${USE_DEB}" == false ] ; then git clone https://github.com/start-jsk/open_industrial_ros_controllers src/open_industrial_ros_controllers; fi | ||
- rosdep install --from-paths src -y --ignore-src --rosdistro ${ROS_DISTRO} | ||
- source /opt/ros/${ROS_DISTRO}/setup.bash | ||
- env | grep ROS | ||
## INSTALL | ||
# 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 | ||
- source install/setup.bash | ||
# Run tests | ||
- catkin run_tests | ||
# check test (this only works on indigo onward) | ||
- catkin_test_results build | ||
- .ci_config/travis.sh | ||
# - source ./travis.sh # Enable this when you have a package-local script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters