.gitlab-ci.yml 4.19 KB
Newer Older
1
2
### Templates for common job definitions ###
.LINUX_TAG: &LINUX_TAG
Jan Möbius's avatar
Jan Möbius committed
3
4
5
  tags:
    - Linux

6
### VS2017 ###
7
8

.VS2017_64_TEMPLATE: &VS2017_x64
Jan Möbius's avatar
Jan Möbius committed
9
  variables:
Jan Möbius's avatar
Jan Möbius committed
10
    BUILD_PLATFORM: "VS2017"
Jan Möbius's avatar
Jan Möbius committed
11
    ARCHITECTURE:   "x64"
Martin Schultz's avatar
Martin Schultz committed
12
  script: "CI\\Windows.bat"
13
14
15
  artifacts:
    paths:
      - build-release/*.exe
Jan Möbius's avatar
Jan Möbius committed
16
  tags:
Jan Möbius's avatar
Jan Möbius committed
17
    - VS2017
18
    - Qt5101
Jan Möbius's avatar
Jan Möbius committed
19

20
.VS2017_32_TEMPLATE: &VS2017_x32
Jan Möbius's avatar
Jan Möbius committed
21
22
  variables:
    BUILD_PLATFORM: "VS2017"
23
    ARCHITECTURE:   "x32"
Jan Möbius's avatar
Jan Möbius committed
24
25
26
27
28
29
30
  script: "CI\\Windows.bat"
  tags:
    - VS2017
  artifacts:
    paths:
      - build-release/*.exe

31
### VS2015 ###
Jan Möbius's avatar
Jan Möbius committed
32

33
.VS2015_64_TEMPLATE: &VS2015_x64
Jan Möbius's avatar
Jan Möbius committed
34
35
36
37
38
39
40
41
42
43
  variables:
    BUILD_PLATFORM: "VS2015"
    ARCHITECTURE:   "x64"
  script: "CI\\Windows.bat"
  tags:
    - VS2015
  artifacts:
    paths:
      - build-release/*.exe

44
.VS2015_32_TEMPLATE: &VS2015_x32
Jan Möbius's avatar
Jan Möbius committed
45
46
47
48
49
50
51
52
53
54
  variables:
    BUILD_PLATFORM: "VS2015"
    ARCHITECTURE:   "x32"
  script: "CI\\Windows.bat"
  tags:
    - VS2015
  artifacts:
    paths:
      - build-release/*.exe

55
### VS2013 ###
Jan Möbius's avatar
Jan Möbius committed
56

57
.VS2013_64_TEMPLATE: &VS2013_x64
Jan Möbius's avatar
Jan Möbius committed
58
  variables:
59
    BUILD_PLATFORM: "VS2013"
Jan Möbius's avatar
Jan Möbius committed
60
61
62
    ARCHITECTURE:   "x64"
  script: "CI\\Windows.bat"
  tags:
63
    - VS2013
Jan Möbius's avatar
Jan Möbius committed
64
65
66
67
  artifacts:
    paths:
      - build-release/*.exe

68
.VS2013_32_TEMPLATE: &VS2013_x32
Jan Möbius's avatar
Jan Möbius committed
69
  variables:
70
    BUILD_PLATFORM: "VS2013"
Jan Möbius's avatar
Jan Möbius committed
71
72
73
    ARCHITECTURE:   "x32"
  script: "CI\\Windows.bat"
  tags:
74
    - VS2013
Jan Möbius's avatar
Jan Möbius committed
75
76
77
78
  artifacts:
    paths:
      - build-release/*.exe

79
80
81
### Linker and App configurations for VS ###

.STATIC_NO_APPS: &STATIC_NO_APPS
Jan Möbius's avatar
Jan Möbius committed
82
83
84
  variables:
    SHARED:         "FALSE"
    APPS:           "OFF"
85
86
    
.STATIC_APPS: &STATIC_APPS
Jan Möbius's avatar
Jan Möbius committed
87
  variables:
88
    SHARED:         "FLASE"
Jan Möbius's avatar
Jan Möbius committed
89
    APPS:           "ON"
90
91
    
.SHARED_NO_APPS: &SHARED_NO_APPS
Jan Möbius's avatar
Jan Möbius committed
92
93
94
95
  variables:
    SHARED:         "TRUE"
    APPS:           "OFF"

96
.SHARED_APPS: &SHARED_APPS
Jan Möbius's avatar
Jan Möbius committed
97
98
99
  variables:
    SHARED:         "TRUE"
    APPS:           "ON"
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
 
### actual job definitions ###

gcc-c++11:
  script: "CI/ci-linux.sh gcc C++11"
  <<: *LINUX_TAG

clang-c++11:
  script: "CI/ci-linux.sh clang C++11"
  <<: *LINUX_TAG

gcc-c++14:
  script: "CI/ci-linux.sh gcc C++14"
  <<: *LINUX_TAG

clang-c++14:
  script: "CI/ci-linux.sh clang C++14"
  <<: *LINUX_TAG

macos-c++11:
  script: "CI/ci-mac.sh C++11"
Jan Möbius's avatar
Jan Möbius committed
121
  tags:
122
    - Apple
Jan Möbius's avatar
Jan Möbius committed
123
124
  artifacts:
    paths:
125
126
      - build-release-cpp11/*.dmg
      - build-release-cpp11/*.tar.gz
Jan Möbius's avatar
Jan Möbius committed
127

128
129
macos-c++98:
  script: "CI/ci-mac.sh C++14"
Jan Möbius's avatar
Jan Möbius committed
130
  tags:
131
    - Apple
Jan Möbius's avatar
Jan Möbius committed
132
133
  artifacts:
    paths:
134
135
136
137
138
      - build-release-cpp14/*.dmg
      - build-release-cpp14/*.tar.gz

cppcheck:
  script: "CI/ci-cppcheck.sh"
Jan Möbius's avatar
Jan Möbius committed
139
  tags:
140
    - Linux
Jan Möbius's avatar
Jan Möbius committed
141
142
  artifacts:
    paths:
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
      - cppcheck.log

VS2017-64-bit-shared-apps:
  variables: *SHARED_APPS
  <<: *VS2017_x64
  
VS2017-64-bit-static-apps:
  variables: *STATIC_APPS
  <<: *VS2017_x64

VS2017-64-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2017_x64

VS2017-64-bit-static-no-apps:
  variables: *STATIC_NO_APPS
  <<: *VS2017_x64

VS2017-32-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2017_x32

VS2017-32-bit-static-no-apps:
  variables: *STATIC_NO_APPS
  <<: *VS2017_x32

VS2015-64-bit-shared-apps:
  variables: *SHARED_APPS
  <<: *VS2015_x64

VS2015-64-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2015_x64

VS2015-64-bit-static-apps:
  variables: *STATIC_APPS
  <<: *VS2015_x64

VS2015-64-bit-static-no-apps:
  variables: *STATIC_NO_APPS
  <<: *VS2015_x64

VS2015-32-bit-shared-apps:
  variables: *SHARED_APPS
  <<: *VS2015_x32

VS2015-32-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2015_x32

VS2015-32-bit-static-apps:
  variables: *STATIC_APPS
  <<: *VS2015_x32

VS2015-32-bit-static-no-apps:
  variables: *STATIC_NO_APPS
  <<: *VS2015_x32

VS2013-64-bit-shared-apps:
  variables: *SHARED_APPS
  <<: *VS2013_x64

VS2013-64-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2013_x64

VS2013-64-bit-static-apps:
  variables: *STATIC_APPS
  <<: *VS2013_x64
Jan Möbius's avatar
Jan Möbius committed
212
213

VS2013-64-bit-static-no-apps:
214
215
216
217
218
219
220
221
222
223
  variables: *STATIC_NO_APPS
  <<: *VS2013_x64

VS2013-32-bit-shared-apps:
  variables: *SHARED_APPS
  <<: *VS2013_x32

VS2013-32-bit-shared-no-apps:
  variables: *SHARED_NO_APPS
  <<: *VS2013_x32
Jan Möbius's avatar
Jan Möbius committed
224
225

VS2013-32-bit-static-apps:
226
227
  variables: *STATIC_APPS
  <<: *VS2013_x32
Jan Möbius's avatar
Jan Möbius committed
228
229

VS2013-32-bit-static-no-apps:
230
231
  variables: *STATIC_NO_APPS
  <<: *VS2013_x32
Jan Möbius's avatar
Jan Möbius committed
232
233
234
235
236
237
238
      
Doc-publish:
  only:
     - master
  script: "CI/ci-doc.sh"
  tags:
     - Linux