-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (38 loc) · 919 Bytes
/
.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
image: htfy96/build-image
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- buildandtest
.build_template: &build_definition
stage: buildandtest
tags:
- docker
script:
- mkdir -p build && cd build && rm -rf *
- cmake -DCMAKE_BUILD_TYPE=Release -Dstatic_map-build_tests=ON -DCMAKE_C_COMPILER=${X_CC} -DCMAKE_CXX_COMPILER=${X_CXX} ..
- make VERBOSE=1
- ctest --verbose
artifacts:
paths:
- build/
when: on_failure
build-gcc5:
<<: *build_definition
variables:
X_CXX: g++-5
X_CC: gcc-5
build-gcc6:
<<: *build_definition
variables:
X_CXX: g++-6
X_CC: gcc-6
build-clang3.8:
<<: *build_definition
variables:
X_CXX: clang++-3.8
X_CC: clang-3.8
build-clang3.9:
<<: *build_definition
variables:
X_CXX: clang++-3.9
X_CC: clang-3.9