forked from orocos-toolchain/rtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (28 loc) · 963 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
27
28
29
30
language:
- cpp
- python
python:
- "2.7"
compiler:
- gcc
before_install:
# Define some config vars
- export ROS_DISTRO=hydro
- export CI_SOURCE_PATH=$(pwd)
# Bootstrap a minimal ROS installation
- git clone https://github.com/jhu-lcsr/ros_ci_tools /tmp/ros_ci_tools && export PATH=/tmp/ros_ci_tools:$PATH
- ros_ci_bootstrap
# Create isolated workspace based on the ros distro
- source /opt/ros/$ROS_DISTRO/setup.bash
- mkdir -p ~/ws_isolated/src
- cd ~/ws_isolated
- ln -s $CI_SOURCE_PATH src/
# Install dependencies for source repos
- rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y > /dev/null
install:
# Build in an isolated catkin workspace
- export EXTRA_CMAKE_ARGS="-DENABLE_TESTS=ON -DENABLE_CORBA=ON -DCORBA_IMPLEMENTATION=OMNIORB"
- catkin_make_isolated --install -j2 --cmake-args $EXTRA_CMAKE_ARGS
script:
# Run tests
- catkin_make_isolated --install -j1 --pkg rtt --make-args check