-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
37 lines (33 loc) · 952 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
31
32
33
34
35
36
37
language:
- cpp
- python
python:
- "2.7"
compiler:
- gcc
dist: bionic
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
branches:
only:
- melodic-devel
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) 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 -qq -y python-rosdep python-catkin-tools
- sudo rosdep init
- rosdep update
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS_SRC
- cd ..
- rosdep install --from-paths src --ignore-src --rosdistro melodic -y
script:
- source /opt/ros/melodic/setup.bash
- cd $CATKIN_WS
- catkin init
- catkin config --install
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release