-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
272 lines (252 loc) · 5.06 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
variables:
GIT_SUBMODULE_STRATEGY: normal
stages:
- build
- test
- package
- publish
- release
build:ubuntu:
stage: build
tags:
- ubuntu
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PACKAGE=ON -DCPACK_BINARY_IFW=OFF -DCPACK_BINARY_STGZ=OFF -DBUILD_TESTING=ON -DENABLE_MODELICA_COMPILER=OFF -DENABLE_BUILDINGS_LIBRARY=OFF ..
- cmake ..
- make -j4
artifacts:
expire_in: 6 hrs
paths:
- build/
test:ubuntu:
stage: test
tags:
- ubuntu
dependencies:
- build:ubuntu
script:
- cd build
- ctest -R spawn
artifacts:
expire_in: 6 hrs
paths:
- build/
package:ubuntu:
stage: package
tags:
- ubuntu
dependencies:
- test:ubuntu
script:
- cd build
- make package
artifacts:
expire_in: 6 hrs
paths:
- build/Spawn*.tar.gz
publish:ubuntu:
stage: publish
tags:
- ubuntu
dependencies:
- package:ubuntu
script:
- python3 cmake/publish.py publish
when: manual
release:ubuntu:
stage: release
tags:
- ubuntu
dependencies:
- package:ubuntu
script:
- python3 cmake/publish.py release
when: manual
only:
- tags
build:windows:
stage: build
tags:
- windows
script:
- mkdir build
- cd build
- C:\Program` Files\CMake\bin\cmake.exe -G 'Visual Studio 16 2019' -DBUILD_PACKAGE=ON -DENABLE_BUILDINGS_LIBRARY=OFF -DCPACK_BINARY_ZIP=ON -DCPACK_BINARY_NSIS=OFF -DCPACK_BINARY_IFW=OFF -DBUILD_TESTING=ON ..
- C:\Program` Files\CMake\bin\cmake.exe ..
- C:\Program` Files\CMake\bin\cmake.exe --build . --config Release --target ALL_BUILD
artifacts:
expire_in: 6 hrs
paths:
- build/
test:windows:
stage: test
tags:
- windows
dependencies:
- build:windows
script:
- cd build
- C:\Program` Files\CMake\bin\ctest.exe -R spawn
artifacts:
expire_in: 6 hrs
paths:
- build/
package:windows:
stage: package
tags:
- windows
dependencies:
- test:windows
script:
- cd build
- C:\Program` Files\CMake\bin\cmake.exe --build . --config Release --target Package
artifacts:
expire_in: 6 hrs
paths:
- build/Spawn*.zip
publish:windows:
stage: publish
tags:
- windows
dependencies:
- package:windows
script:
- python3 cmake/publish.py publish
when: manual
release:windows:
stage: release
tags:
- windows
dependencies:
- package:windows
script:
- python3 cmake/publish.py release
when: manual
only:
- tags
build:mac:
stage: build
tags:
- mac
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PACKAGE=ON -DCPACK_BINARY_STGZ=OFF -DCPACK_BINARY_IFW=OFF -DBUILD_TESTING=ON -DENABLE_BUILDINGS_LIBRARY=OFF ..
- cmake ..
- make -j2
artifacts:
expire_in: 6 hrs
paths:
- build/
test:mac:
stage: test
tags:
- mac
dependencies:
- build:mac
script:
- cd build
- ctest -R spawn
artifacts:
expire_in: 6 hrs
paths:
- build/
package:mac:
stage: package
tags:
- mac
dependencies:
- test:mac
script:
- cd build
- make package
artifacts:
expire_in: 6 hrs
paths:
- build/Spawn*.tar.gz
publish:mac:
stage: publish
tags:
- mac
dependencies:
- package:mac
script:
- python3 cmake/publish.py publish
when: manual
release:mac:
stage: release
tags:
- mac
dependencies:
- package:mac
script:
- python3 cmake/publish.py release
when: manual
only:
- tags
#build:ubuntu-modelica:
# stage: build
# tags:
# - ubuntu
# script:
# - mkdir build
# - cd build
# - cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PACKAGE=ON -DCPACK_BINARY_IFW=OFF -DCPACK_BINARY_STGZ=OFF -DBUILD_TESTING=ON -DENABLE_MODELICA_COMPILER=ON -DENABLE_BUILDINGS_LIBRARY=ON ..
# - cmake ..
# - make -j1
# artifacts:
# expire_in: 6 hrs
# paths:
# - build/
#
#test:ubuntu-modelica:
# stage: test
# tags:
# - ubuntu
# dependencies:
# - build:ubuntu-modelica
# script:
# - cd build
# - ctest -R spawn
# artifacts:
# expire_in: 6 hrs
# paths:
# - build/
#
#package:ubuntu-modelica:
# stage: package
# tags:
# - ubuntu
# dependencies:
# - test:ubuntu-modelica
# script:
# - cd build
# - make package
# artifacts:
# expire_in: 6 hrs
# paths:
# - build/Spawn*.tar.gz
#
#publish:ubuntu-modelica:
# stage: publish
# tags:
# - ubuntu
# dependencies:
# - package:ubuntu-modelica
# script:
# - python3 cmake/publish.py publish
# when: manual
#
#release:ubuntu-modelica:
# stage: release
# tags:
# - ubuntu
# dependencies:
# - package:ubuntu-modelica
# script:
# - python3 cmake/publish.py release
# when: manual
# only:
# - tags