forked from fixstars/libSGM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
74 lines (64 loc) · 1.37 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
image: adaskit/libsgm:0.1
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
.build_template: &build_definition
stage: build
tags:
- docker
script:
- ldconfig
- cmake . -DBUILD_OPENCV_WRAPPER="ON" -DENABLE_SAMPLES=${build_samples} -DLIBSGM_SHARED=${build_shared} -DENABLE_TESTS=${build_tests}
- make
build:samples_on:shared:
variables:
build_samples: "ON"
build_shared: "ON"
build_tests: "OFF"
<<: *build_definition
build:samples_on:static:
variables:
build_samples: "ON"
build_shared: "OFF"
build_tests: "OFF"
<<: *build_definition
build:samples_off:shared:
variables:
build_samples: "OFF"
build_shared: "ON"
build_tests: "OFF"
<<: *build_definition
build:samples_off:static:
variables:
build_samples: "OFF"
build_shared: "OFF"
build_tests: "OFF"
<<: *build_definition
build:with_opencv4:
image: adaskit/libsgm:0.3-opencv4
variables:
build_samples: "ON"
build_shared: "ON"
build_tests: "OFF"
<<: *build_definition
build:test:
variables:
build_samples: "OFF"
build_shared: "OFF"
build_tests: "ON"
artifacts:
paths:
- ./test/sgm-test
expire_in: 1d
<<: *build_definition
test:
stage: test
tags:
- nvidia-docker
script:
- ldconfig
- cuda-memcheck --leak-check full ./test/sgm-test
dependencies:
- build:test