-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
59 lines (59 loc) · 2.23 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
os: linux
dist: bionic
language:
- cpp
env:
global:
- ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [trusty|xenial|...]
- CI_SOURCE_PATH=$(pwd)
- ROSINSTALL_FILE=$CI_SOURCE_PATH/dependencies.rosinstall
- CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options
- ROS_PARALLEL_JOBS='-j8 -l6'
compiler:
- clang
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- cmake
- clang-7
before_install:
- sudo add-apt-repository universe
- sudo add-apt-repository multiverse
- sudo apt update
- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list"
- sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update -qq
- sudo apt-get install python-rosdep dpkg
- sudo apt-get install -y ros-melodic-desktop libgtest-dev libeigen3-dev
- sudo apt-get install -y cmake build-essential ros-melodic-serial
- sudo apt-get install -y g++ cmake libpopt-dev
- sudo apt-get install -y liblua5.1-dev libeigen3-dev libglew1.5-dev
- sudo apt-get install -y freeglut3-dev libncurses5-dev libjpeg8-dev
- sudo apt-get install -y libsuitesparse-dev libblas-dev liblapack-dev
- sudo apt-get install -y libgoogle-glog-dev libgflags-dev libceres-dev
- sudo apt-get install -y libtbb-dev libgoogle-perftools-dev libopenmpi-dev
- sudo apt-get install -y python-pygame ros-melodic-serial
- sudo apt-get install -y libqt5websockets5-dev libqt5opengl5-dev
- sudo apt-get install -y ros-melodic-rosbridge-suite ros-melodic-angles
- source /opt/ros/melodic/setup.bash
- sudo rosdep init
- rosdep update --include-eol-distros # Support EOL distros.
- pushd $CI_SOURCE_PATH/..
- git clone https://github.com/ut-amrl/amrl_msgs.git
- git clone https://github.com/ut-amrl/amrl_maps.git
- pushd $CI_SOURCE_PATH/../amrl_msgs
- export ROS_PACKAGE_PATH=`pwd`:$ROS_PACKAGE_PATH
- make
- popd
- popd
script:
- source /opt/ros/melodic/setup.bash
- export ROS_PACKAGE_PATH=`pwd`:$ROS_PACKAGE_PATH
- export ROS_PACKAGE_PATH=`pwd`/../amrl_msgs:$ROS_PACKAGE_PATH
- export ROS_PACKAGE_PATH=`pwd`/../amrl_maps:$ROS_PACKAGE_PATH
- make hardware