forked from ros/ros_comm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language:
- cpp
- python
python:
- "2.7"
compiler:
- gcc
- clang
# command to install dependencies
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise 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 python-rosdep python-catkin-pkg python-nose python-coverage python-wstool pep8 -qq
- sudo apt-get install ros-groovy-catkin -qq
- sudo rosdep init
- rosdep update
# Make a workspace
- mkdir -p /tmp/ros_comm_ws/src
# Add this folder to the workspace
- ln -s `pwd` /tmp/ros_comm_ws/src/ros_comm
# Install dependencies
- cd /tmp/ros_comm_ws
- rosdep install --from-paths src --ignore-src --rosdistro groovy -y > /dev/null
# command to run tests
script:
- source /opt/ros/groovy/setup.bash
- cd /tmp/ros_comm_ws
- catkin_make tests > log.make_tests
- cd build
# Manually invoke make, catkin_make
- make run_tests > log.run_tests || cat log.*
# Check test results
- 'python -c "from catkin.test_results import test_results;import sys;sys.exit(sum([v[1] + v[2] for k, v in test_results(\"test_results\").iteritems()]))" || cat log*'
- 'python -c "from catkin.test_results import test_results;import sys;sys.exit(sum([v[1] + v[2] for k, v in test_results(\"test_results\").iteritems()]))"'
notifications:
email: false