# Revision history [back]

I've open-sourced my .travis.yml file for using travis-ci for continuous integration on ROS packages: https://github.com/felixduvallet/ros-travis-integration

It works with Ubuntu 14.04 and ROS indigo by default, but in principle could be used with other ubuntu/ros distributions.

To enable continuous integration for your ROS package, just:

2. Copy this .travis.yml file into your repository and commit it.
3. Push to github!

Note: At this time, Travis-CI only works with github.

## What Travis does each time you push:

1. Installs a barebones ROS distribution (indigo by default) on a fresh ubuntu virtual machine.
2. Creates a catkin workspace and puts your repository in it.
3. Uses wstool to check out any from-source dependencies (i.e. other repositories).
4. Resolves package dependencies using rosdep (i.e. install packages using apt-get).
5. Compiles the catkin workspace
6. Runs all available unit tests

If any of the steps fail, the build is marked as a failure and you'll hear about it.

## Dependencies:

This script handles two types of dependencies:

• ROS package: Packages that can be installed using apt-get (resolved using rosdep).
• source: Other repositories that must be checked out into the workspace (resolved using wstool).

This means that all your dependencies must be explicitly declared (in the package.xml files) so they can be resolved (NOTE: this is a good thing!). Source depencies are (by default) listed in a file named dependencies.rosinstall in the root of your repository. If you don't have dependencies to list, this file can safely be ignored.

If you want to pass additional options to catkin_make, you can use the catkin.options file to specify any command-line options.