forked from ros-simulation/stage_ros
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (57 loc) · 2.04 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
48
49
50
51
52
53
54
55
56
57
language: cpp
compiler:
- gcc
install:
# - if [ $TRAVIS_BRANCH = 'indigo-devel' ]; export CI_ROS_DISTRO=indigo; fi
# - if [ $TRAVIS_BRANCH = 'jade-devel' ]; export CI_ROS_DISTRO=jade; fi
- export CI_ROS_DISTRO=indigo
- 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 python-rosinstall-generator python-wstool
- sudo `which rosdep` init
- rosdep update
# Use rosinstall_generator and wstool to get the software (no debs for indigo+)
- mkdir deps
- cd deps
- touch CATKIN_IGNORE
- rosinstall_generator --rosdistro $CI_ROS_DISTRO --tar --deps --deps-only stage_ros > deps.rosinstall
- wstool init ./src -j10 deps.rosinstall
# Temporarily get std_srvs until a new version of stage_ros is released
- rosinstall_generator --rosdistro $CI_ROS_DISTRO --tar std_srvs > std_srvs.rosinstall
- wstool merge -t src std_srvs.rosinstall
- wstool up -t src
# Use rosdep to get the missing dependencies, except console bridge and lz4
- rosdep install --default-yes --from-paths ./src --ignore-src --rosdistro $CI_ROS_DISTRO --skip-keys lz4 --skip-keys libconsole-bridge-dev
# Get lz4
- sudo add-apt-repository -y ppa:gezakovacs/lz4
- sudo apt-get update
- sudo apt-get install -y liblz4-dev
# Get libconsole-bridge-dev package for precise
- mkdir build_console_bridge
- cd build_console_bridge
- git clone https://github.com/ros/console_bridge.git
- cd console_bridge/
- mkdir build
- cd build/
- cmake ..
- make
- sudo make install
- cd ../../..
# Build the deps
- ./src/catkin/bin/catkin_make_isolated --install -j1
- cd ..
script:
- source deps/install_isolated/setup.bash
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=./install
- make -j1
- make -j1 run_tests
- catkin_test_results .
- make -j1 install
notifications:
email: false