-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci-coverage.yml
64 lines (62 loc) · 1.48 KB
/
.gitlab-ci-coverage.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
############################################################
# Code Coverage pipeline: uses ubuntu Focal Fossa
############################################################
coverage-setup:
image: cee-gitlab.sandia.gov:4567/trajectory/tracktable/ubuntu:FocalFossa
stage: setup
only:
variables:
- $DO_COVERAGE == "true"
tags:
- ubuntu
- docker
script:
- mkdir build_coverage
artifacts:
paths:
- build_coverage
expire_in: 2 hours
coverage-configure:
image: cee-gitlab.sandia.gov:4567/trajectory/tracktable/ubuntu:FocalFossa
stage: configure
only:
variables:
- $DO_COVERAGE == "true"
tags:
- ubuntu
- docker
dependencies:
- coverage-setup
script:
- apt-get update
- apt-get -y install lcov
- cd build_coverage
- cmake -DCMAKE_BUILD_TYPE=Coverage ..
artifacts:
paths:
- build_coverage
expire_in: 2 hours
coverage-build:
image: cee-gitlab.sandia.gov:4567/trajectory/tracktable/ubuntu:FocalFossa
stage: build
only:
variables:
- $DO_COVERAGE == "true"
tags:
- ubuntu
- docker
dependencies:
- coverage-configure
script:
- apt-get update
- apt-get -y install lcov
- cd build_coverage
- make
- make cov_init
- ctest --output-on-failure --exclude-regex 'C_MemoryUse|C_GREAT_CIRCLE_FIT|P_Render_Trajectories|C_TrajectoryAssemblyDomain'
- make cov_capture
- make cov_genhtml
artifacts:
paths:
- build_coverage
expire_in: 1 week