forked from ros-visualization/visualization_tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 960 Bytes
/
.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
language: cpp
compiler:
- gcc
- clang
install:
- export CI_ROS_DISTRO=hydro
- echo $CI_ROS_DISTRO
# Add ROS repositories
- 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
# Install and initialize rosdep
- sudo apt-get install python-rosdep
- sudo `which rosdep` init
- rosdep update
# Use rosdep to install rviz's dependencies
- rosdep install --default-yes --from-paths ./ --rosdistro $CI_ROS_DISTRO
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir build
- catkin_make --source . --build ./build -DCMAKE_INSTALL_PREFIX=./install -j1
- catkin_make --source . --build ./build -DCMAKE_INSTALL_PREFIX=./install -j1 run_tests
- catkin_test_results .
- catkin_make --source . --build ./build -DCMAKE_INSTALL_PREFIX=./install -j1 install
notifications:
email: false