forked from PRBonn/depth_clustering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1.35 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
sudo: required
language: generic
services:
- docker
before_install:
- rvm default
- docker run -itd --name build
-v $(pwd):/catkin_ws/src/repo
ros:melodic-perception
before_script:
- gem install coveralls-lcov
- docker exec build bash -c 'source /opt/ros/melodic/setup.bash &&
apt-get update &&
apt-get install -y python3-pip libqglviewer-dev-qt5 freeglut3-dev gcovr lcov &&
pip3 install catkin-tools trollius'
- docker exec build bash -c 'cd /catkin_ws/ &&
catkin init &&
git clone https://github.com/ros/catkin.git src/catkin'
script:
- docker exec build bash -c 'source /opt/ros/melodic/setup.bash &&
cmake -DBUILD_WITH_COVERAGE=YES -H/catkin_ws/src/repo -B/build'
- docker exec build bash -c 'cd /build && make -j8'
- docker exec build bash -c 'cd /build && ctest -VV'
- docker exec build bash -c 'cd /build && gcovr -r /catkin_ws/src/repo .'
after_script:
- docker exec build lcov --directory . --capture --output-file /coverage.info
- docker exec build lcov
--remove /coverage.info '/usr/*' '/catkin_ws/src/repo/src/examples/' --output-file /coverage.info
- docker exec build lcov --list /coverage.info
- docker cp build:/coverage.info .
- sed 's/\/catkin_ws\/src\/repo\///g' coverage.info > coverage_better_paths.info
- coveralls-lcov --repo-token ${COVERALLS_REPO_TOKEN} coverage_better_paths.info