Skip to content

Commit 8ece976

Browse files
author
Russell Toris
committed
New travis for indigo and jade
1 parent 0d3b114 commit 8ece976

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

.travis.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
language:
2-
- cpp
3-
- python
4-
python:
5-
- "2.7"
6-
compiler:
7-
- gcc
8-
91
sudo: required
102
dist: trusty
3+
language: generic
4+
compiler:
5+
- gcc
6+
env:
7+
global:
8+
- CATKIN_WS=~/catkin_ws
9+
- CATKIN_WS_SRC=${CATKIN_WS}/src
10+
matrix:
11+
- CI_ROS_DISTRO="indigo"
12+
- CI_ROS_DISTRO="jade"
1113

1214
branches:
1315
only:
@@ -18,18 +20,18 @@ install:
1820
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
1921
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
2022
- sudo apt-get update -qq
21-
- sudo apt-get install python-catkin-pkg python-rosdep ros-indigo-catkin -qq
23+
- sudo apt-get install -qq -y python-rosdep python-catkin-tools
2224
- sudo rosdep init
2325
- rosdep update
24-
- mkdir -p /tmp/ws/src
25-
- ln -s `pwd` /tmp/ws/src/package
26-
- cd /tmp/ws
27-
- rosdep install --from-paths src --ignore-src --rosdistro indigo -y
26+
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
2827

2928
script:
30-
- source /opt/ros/indigo/setup.bash
31-
- catkin_make
32-
- catkin_make tests
33-
- source devel/setup.bash
34-
- rostest async_web_server_cpp tests.test
35-
- catkin_make install
29+
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
30+
- mkdir -p $CATKIN_WS_SRC
31+
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
32+
- cd $CATKIN_WS
33+
- catkin init
34+
- catkin config --install
35+
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release
36+
- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
37+
- catkin run_tests

0 commit comments

Comments
 (0)