Skip to content

Commit e481f99

Browse files
author
Florian Weisshardt
committed
Create .travis.yml
1 parent 96beac7 commit e481f99

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.travis.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
sudo: required
2+
dist: trusty
3+
# Force travis to use its minimal image with default Python settings
4+
language: generic
5+
compiler:
6+
- gcc
7+
env:
8+
global:
9+
- CATKIN_WS=~/catkin_ws
10+
- CATKIN_WS_SRC=${CATKIN_WS}/src
11+
- CI_ROS_DISTRO="indigo"
12+
# matrix:
13+
# - CI_ROS_DISTRO="indigo"
14+
# - CI_ROS_DISTRO="jade"
15+
install:
16+
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
17+
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
18+
- sudo apt-get update -qq
19+
- sudo apt-get install -qq -y python-rosdep python-catkin-tools
20+
- sudo rosdep init
21+
- rosdep update
22+
# Use rosdep to install all dependencies (including ROS itself)
23+
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
24+
script:
25+
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
26+
- mkdir -p $CATKIN_WS_SRC
27+
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
28+
- cd $CATKIN_WS
29+
- catkin init
30+
# Enable install space
31+
#- catkin config --install
32+
# Build [and Install] packages
33+
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release
34+
# Build tests
35+
- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
36+
# Run tests
37+
#- catkin run_tests

0 commit comments

Comments
 (0)