-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
47 lines (47 loc) · 1.67 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
38
39
40
41
42
43
44
45
46
47
sudo: required
dist: trusty
language: generic
#compiler:
# - gcc
notifications:
email:
on_success: always
on_failure: always
recipients:
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
- DEB_REPOSITORY=http://packages.ros.org/ros/ubuntu
- ROS_DISTRO=indigo
matrix:
- MODULE="hotfix"
install:
- sudo sh -c "echo \"deb ${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 -qq update
- sudo apt-get install -y --force-yes -q -qq dpkg # https://github.com/travis-ci/travis-ci/issues/9361#issuecomment-408431262 dpkg-deb: error: archive has premature member 'control.tar.xz' before 'control.tar.gz' #9361
- sudo apt-get -qq install -y python-catkin-tools python-rosdep
- sudo rosdep init
- rosdep update --include-eol-distros
# Use rosdep to install all dependencies (including ROS itself)
- rosdep install --from-paths ./ -i -y --rosdistro $ROS_DISTRO
- source /opt/ros/$ROS_DISTRO/setup.bash
script:
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS
- catkin init
# Enable install space
#- catkin config --install
# Build [and Install] packages
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Debug
- source devel/setup.bash
# Build tests
#- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
# Run tests
#- catkin run_tests
# check test (this only works from indigo onward)
#- catkin_test_results build
- if [[ "$MODULE"="hotfix" ]]; then rosrun 88_tools test_hotfix.sh; fi