-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
110 lines (96 loc) · 2.15 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Global
stages:
- Platform Tests
- Analysis
variables:
GIT_SUBMODULE_STRATEGY: recursive
CTEST_OUTPUT_ON_FAILURE: '1'
# Platform Tests
.platform_unix_template: &platform_unix_template
stage: Platform Tests
tags:
- docker-linux
script:
- mkdir build && cd build
- cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON
- ninja
- ctest
.platform_windows_template: &platform_windows_template
stage: Platform Tests
image: stabletec/build-foe:windows
tags:
- docker-windows
- amd64
script:
- mkdir build; cd build
- cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON
- ninja
- ninja test
.platform_macos_template: &platform_macos_template
stage: Platform Tests
tags:
- macos
- amd64
dependencies: []
script:
- mkdir build && cd build
- cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON
- ninja
- ctest
Fedora/GCC:
image: stabletec/build-foe:fedora
variables:
CC: gcc
CXX: g++
<<: *platform_unix_template
Fedora/Clang:
image: stabletec/build-foe:fedora
variables:
CC: clang
CXX: clang++
<<: *platform_unix_template
Ubuntu/GCC:
image: stabletec/build-foe:ubuntu
variables:
CC: gcc
CXX: g++
<<: *platform_unix_template
Ubuntu/Clang:
image: stabletec/build-foe:ubuntu
variables:
CC: clang
CXX: clang++
<<: *platform_unix_template
Windows/MSVC:
<<: *platform_windows_template
Windows/Clang-cl:
variables:
CC: clang-cl
CXX: clang-cl
<<: *platform_windows_template
macOS/Clang (amd64):
variables:
CC: clang
CXX: clang++
<<: *platform_macos_template
# Analysis
Code Coverage:
stage: Analysis
image: stabletec/build-foe:fedora
tags:
- docker-linux
dependencies: []
variables:
CC: clang
CXX: clang++
script:
- mkdir build && cd build
- cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCODE_COVERAGE=ON -DBUILD_TESTS=ON
- ninja
- ninja ccov-VkSerializationTests
- ninja ccov-report-VkSerializationTests
artifacts:
name: CodeCoverage
paths:
- build/ccov
expire_in: 1 day