-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
68 lines (62 loc) · 1.87 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
58
59
60
61
62
63
64
65
66
67
68
sudo: true
dist: trusty
language:
- generic
cache:
- apt
env:
global:
- ROS_DISTRO=indigo
- ROS_CI_DESKTOP="`lsb_release -cs`"
- CI_SOURCE_PATH=$(pwd)
# Install package dependencies
before_install:
# Testing $DISPLAY
- echo $DISPLAY
# Install OpenRAVE
- mkdir -p ~/git; cd ~/git
- git clone https://github.com/crigroup/openrave-installation.git
- cd openrave-installation
- ./install-dependencies.sh
- ./install-fcl.sh
- ./install-openrave.sh
# Install ROS
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP 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
- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin
- source /opt/ros/$ROS_DISTRO/setup.bash
# Prepare rosdep to install dependencies.
- sudo rosdep init
- rosdep update
# Install coveralls
- pip install coveralls --user
# Upgrade scipy so that we can test visual.draw_bspline
- pip install --upgrade --user scipy
# Create a catkin workspace with the package under integration.
install:
- mkdir -p ~/catkin_ws/src
- cd ~/catkin_ws/src
- catkin_init_workspace
- cd ~/catkin_ws
- catkin_make
- source devel/setup.bash
- cd ~/catkin_ws/src
- git clone https://github.com/crigroup/openrave_catkin.git
- ln -s $CI_SOURCE_PATH .
# This is required only for installing from source
- git clone https://github.com/crigroup/baldor.git
# Install all dependencies
before_script:
- cd ~/catkin_ws
- rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
# Compile
script:
- cd ~/catkin_ws
- catkin_make install
- source devel/setup.bash
- cd ~/catkin_ws/src/raveutils
# Run the tests with coverage
- nosetests tests/ --with-coverage --cover-package=raveutils -v
after_success:
- coveralls