forked from eborghi10/libcreate
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
41 lines (36 loc) · 1.27 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
os: linux
dist: bionic
language: generic
compiler:
- gcc
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
- CI_ROS_DISTRO="melodic"
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -cs` 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 -qq
- sudo apt-get install -qq -y python-rosdep python-catkin-tools
- sudo rosdep init
- rosdep update
# Use rosdep to install all dependencies (including ROS itself)
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir -p $CATKIN_WS_SRC
# Add the package under integration to the workspace using a symlink
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- cd $CATKIN_WS
# Build packages
- catkin_make -DCMAKE_BUILD_TYPE=Release
# Run the tests, ensuring the path is set correctly.
- source devel/setup.bash
# Run tests
- catkin_make run_tests && catkin_test_results
# Lint package files
- sudo apt-get install python-catkin-lint
- catkin lint -W2 --strict --explain src/libcreate --ignore header_outside_package_include_path
- catkin_make roslint