-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
77 lines (72 loc) · 2.79 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
language: generic
dist: trusty
os: linux
cache:
directories:
- $HOME/.ccache
notifications:
email:
on_failure: always
recipients:
env:
global:
- CATKIN_LINT=true
- CATKIN_LINT_ARGS='--strict'
- CMAKE_ARGS="-DCATKIN_ENABLE_CLANG_TIDY=true"
- ADDITIONAL_DEBS="clang-tidy libclang-dev"
- CCACHE_DIR=$HOME/.ccache
jobs:
include:
# Main Job - Checks against released packages of melodic
- name: "Build + Test with Main Repo of melodic (http://packages.ros.org/ros/ubuntu)"
install:
- git clone --depth=1 --branch master https://github.com/ros-industrial/industrial_ci.git .industrial_ci
env:
- ROS_REPO=main
ROS_DISTRO="melodic"
script:
- .industrial_ci/travis.sh
allow_failure: true
# Testing Job - Checks against packages in testing stage of melodic. Relevant since all these get released together during a sync.
- name: "Build + Test with Testing Repo of melodic (http://packages.ros.org/ros-testing/ubuntu)"
install:
- git clone --depth=1 --branch master https://github.com/ros-industrial/industrial_ci.git .industrial_ci
env:
- ROS_REPO=testing
ROS_DISTRO="melodic"
script:
- .industrial_ci/travis.sh
# Testing Job with clang format- Checks against packages in testing stage. Relevant since all these get released together during a sync.
- name: "Build + Test with clang format with Testing Repo of melodic (http://packages.ros.org/ros-testing/ubuntu)"
install:
- git clone --depth=1 --branch master https://github.com/ros-industrial/industrial_ci.git .industrial_ci
env:
- ROS_DISTRO="melodic"
CLANG_FORMAT_CHECK=file
CLANG_FORMAT_VERSION=3.9
script:
- .industrial_ci/travis.sh
# Coverage Job - Checks that the code coverage of psen_scan is at 100.0%.
- name: "Coverage check for psen_scan"
install:
- git clone --depth=1 --branch master https://github.com/ros-industrial/industrial_ci.git .industrial_ci
- git clone --depth=1 --branch master https://github.com/PilzDE/industrial_ci_addons.git .industrial_ci/industrial_ci/src/industrial_ci_addons
env:
- ROS_REPO=testing
ROS_DISTRO="melodic"
CATKIN_LINT=false
NOT_TEST_BUILD=true
PARALLEL_TESTS=false
AFTER_SCRIPT="source /root/ici/industrial_ci_addons/check_coverage.sh && check_coverage psen_scan"
CMAKE_ARGS="-DENABLE_COVERAGE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug"
script:
- .industrial_ci/travis.sh