-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
82 lines (82 loc) · 3.6 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Continious Integration Configuration File for semantic exploration Package
# Author: Tarek Taha
# Date : 02/01/2019
sudo: required
dist: xenial
language: generic
python:
- "2.7"
compiler:
- gcc
notifications:
email:
recipients:
on_success: change #[always|never|change] # default: change
on_failure: change #[always|never|change] # default: always
slack: kuri-workspace:2EosXOtnYzVMjvPTRutfSjlT
env:
global:
# Some Global variables can go here
- GLOBAL_VAR="global_var"
matrix:
- ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu
# Install prerequisites and/or dependencies required by the system
before_install:
- cmake --version
- find /usr/share -iname "*Eigen*.cmake"
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${PWD##*/}
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME on $ROS_DISTRO"
- sudo -E sh -c 'echo "deb $ROS_REPOSITORY_PATH `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
- sudo apt-get update -qq
- sudo apt-get install ros-$ROS_DISTRO-desktop-full
- sudo apt-get install -qq -y python-rosdep python-wstool python-catkin-tools python-catkin-pkg xvfb ros-$ROS_DISTRO-xacro
- sudo apt-get install -y libcgal-dev
- sudo apt-get install -y ros-$ROS_DISTRO-octomap ros-$ROS_DISTRO-octomap-ros ros-$ROS_DISTRO-octomap-mapping
- sudo apt-get install -y ros-$ROS_DISTRO-rviz-visual-tools ros-$ROS_DISTRO-mavros* ros-$ROS_DISTRO-mavlink
- sudo apt-get install -y python-jinja2
- sudo apt-get install -y libopencv-dev libprotobuf-dev libprotoc-dev protobuf-compiler libeigen3-dev
- sudo pip install numpy toml
- sudo rosdep init
- rosdep update
# Use this to install any prerequisites or dependencies necessary to run your build
install:
# Create workspace
- mkdir -p ~/catkin_ws/
- cd ~/catkin_ws/
- wstool init src
- wstool set -y -t src semantic_based_exploration https://github.com/kucars/semantic_based_exploration.git --git
- wstool update -t src
- rosdep install -y -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- cd ~/catkin_ws/src/semantic_based_exploration
- git checkout semantic_exploration_octomap_generator
- git submodule update --init --recursive
- cd ~/catkin_ws
- git clone https://github.com/PX4/Firmware.git
- cd ~/catkin_ws/Firmware
- git checkout v1.8.2
- make posix_sitl_default
- cd ~/catkin_ws/src
- git clone https://[email protected]/TarekTaha/semantic_cloud.git
# Use this to prepare your build for testing e.g. copy database configurations, environment variables, etc.
before_script:
- source /opt/ros/$ROS_DISTRO/setup.bash
- rospack profile
# All commands must exit with code 0 on success. Anything else is considered failure
script:
- cd ~/catkin_ws/
- catkin_make -DCATKIN_WHITELIST_PACKAGES="catkin_simple"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="gflags_catkin"
- cp src/semantic_based_exploration/glog_catkin/fix-unused-typedef-warning.patch src/
- catkin_make -DCATKIN_WHITELIST_PACKAGES="glog_catkin"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="eigen_catkin"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="eigen_checks"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="minkindr"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="minkindr_conversions"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="kdtree"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="semantic_cloud"
- catkin_make -DCATKIN_WHITELIST_PACKAGES="semantic_exploration"
- source devel/setup.bash
- rospack profile