forked from fixstars/cuda-bundle-adjustment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (49 loc) · 1.13 KB
/
.gitlab-ci.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
image: adaskit/cuba:0.2
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
.build_template: &build_definition
stage: build
tags:
- docker
script:
- ldconfig
- cmake . -DENABLE_SAMPLES=ON -DWITH_G2O=${with_g2o} -DUSE_FLOAT32=${use_float32} -DCMAKE_MODULE_PATH=/usr/local
- make
build:sample_with_g2o:
variables:
with_g2o: "ON"
use_float32: "OFF"
artifacts:
paths:
- ./samples/sample_ba_from_file
- ./samples/sample_comparison_with_g2o
expire_in: 1d
<<: *build_definition
build:use_float32:
variables:
with_g2o: "OFF"
use_float32: "ON"
<<: *build_definition
test:sample_with_g2o:
stage: test
tags:
- nvidia-docker
script:
- ldconfig
- 7za x samples/ba_input.7z
- ./samples/sample_comparison_with_g2o ./ba_input/ba_kitti_00.json
dependencies:
- build:sample_with_g2o
test:cuda-memcheck:
stage: test
tags:
- nvidia-docker
script:
- ldconfig
- 7za x samples/ba_input.7z
- compute-sanitizer --leak-check full ./samples/sample_ba_from_file ./ba_input/ba_kitti_07.json
dependencies:
- build:sample_with_g2o