forked from wardsimon/CFML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
279 lines (253 loc) · 10.3 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
271
272
273
274
275
276
277
278
279
stages:
- docker_pre_clean
- make
- make_release
- docker_post_clean
docker_pre_clean:
stage: docker_pre_clean
script:
- ${CI_PROJECT_DIR}/BuildServer/Docker/clean.sh
allow_failure: true
tags:
- docker
- sci
- ubuntu
docker_post_clean:
stage: docker_post_clean
script:
- ${CI_PROJECT_DIR}/BuildServer/Docker/clean.sh
allow_failure: true
when: always
dependencies: []
tags:
- docker
- sci
- ubuntu
#===============
#== MAKE SECTION
#===============
make:linux_gfortran:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_gfortran -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_gfortran_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_gfortran_build -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_gfortran_build --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof/hdf5-1_12_0-gfortran:/hdf5 ci_crysfml_xenial_gfortran_build
tags:
- docker
- sci
- ubuntu
make:linux_ifort:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_ifort -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_ifort_build -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_build --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof/intel:/opt/intel -v/users/ci/projects/fullprof/hdf5-1_12_0-ifort:/hdf5 ci_crysfml_xenial_ifort_build
tags:
- docker
- sci
- ubuntu
make:linux_gfortran_F2008:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_gfortran_f2008 -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_gfortran_setup_F2008 .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_gfortran_build_f2008 -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_gfortran_build_F2008 --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ ci_crysfml_xenial_gfortran_build_f2008
tags:
- docker
- sci
- ubuntu
make:linux_ifort_F2008:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_ifort -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_ifort_build_f2008 -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_build_F2008 --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof/intel:/opt/intel ci_crysfml_xenial_ifort_build_f2008
tags:
- docker
- sci
- ubuntu
#===============
make:macos_gfortran:
stage: make
script:
- export HDF5_INCLUDE_PATH="/Users/ci/Projects/fullprof/hdf5-gfortran/include"
- export HDF5_LIBRARY_PATH="/Users/ci/Projects/fullprof/hdf5-gfortran/lib"
- BuildServer/Unix/build.sh gfortran
tags:
- sci
- osx-10.13
make:macos_ifort:
stage: make
script:
- export HDF5_INCLUDE_PATH="/Users/ci/Projects/fullprof/hdf5-ifort/include"
- export HDF5_LIBRARY_PATH="/Users/ci/Projects/fullprof/hdf5-ifort/lib"
- BuildServer/Unix/build.sh ifort
tags:
- sci
- osx-10.13
make:macos_gfortran_F2008:
stage: make
script:
- BuildServer/Unix/build_F2008.sh /usr/local/Cellar/gcc/9.3.0_1/bin/gfortran
tags:
- sci
- osx-10.13
make:macos_ifort_F2008:
stage: make
script:
- BuildServer/Unix/build_F2008.sh ifort
tags:
- sci
- osx-10.13
#===============
make:windows_gfortran:
stage: make
script:
- set PATH=c:\Projects\fullprof\python37;C:\\Projects\\fullprof\\hdf5-gfortran\\bin;%PATH%
- set PATH=c:\Projects\fullprof\MinGW64\bin;%PATH%
- set PATH=%PATH:C:\Program Files\Git\bin;=%
- set HDF5_INCLUDE_PATH=C:\\Projects\\fullprof\\hdf5-gfortran\\include\\shared
- set HDF5_LIBRARY_PATH=C:\\Projects\\fullprof\\hdf5-gfortran\\lib
- call "BuildServer\\Windows\\build.bat" gfortran
tags:
- sci
- windows-10
make:windows_ifort:
stage: make
script:
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
- set PATH=c:\Projects\fullprof\python37\;C:\\Projects\\fullprof\\hdf5-ifort\\bin;%PATH%
- set LIB="C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2020.2.254\\windows\\compiler\\lib\\intel64_win";%LIB%
- set HDF5_INCLUDE_PATH=C:\\Projects\\fullprof\\hdf5-ifort\\include\\shared
- set HDF5_LIBRARY_PATH=C:\\Projects\\fullprof\\hdf5-ifort\\lib
- call "BuildServer\\Windows\\build.bat" ifort
tags:
- sci
- windows-10
make:windows_gfortran_F2008:
stage: make
script:
- set PATH=%PATH:C:\Program Files\Git\bin;=%
- set PATH=%PATH:c:\Projects\fullprof\mingw\bin;=%
- set PATH=c:\Projects\fullprof\MinGW64\bin;%PATH%
- call "BuildServer\\Windows\\build_F2008.bat" gfortran
tags:
- sci
- windows-10
make:windows_ifort_F2008:
stage: make
script:
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
- set LIB="C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2020.2.254\\windows\\compiler\\lib\\intel64_win";%LIB%
- call "BuildServer\\Windows\\build_F2008.bat" ifort
tags:
- sci
- windows-10
#=======================
#== MAKE RELEASE SECTION
#=======================
make_release:linux_ifort:
stage: make_release
script:
- docker build --force-rm -t ci_crysfml_xenial_ifort -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_release_ifort_build -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_release_ifort_build --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof:/fullprof -v/users/ci/projects/fullprof/intel:/opt/intel -v/users/ci/projects/fullprof/hdf5-1_12_0-ifort:/hdf5 ci_crysfml_xenial_release_ifort_build
artifacts:
name: "CrysFML Linux ifort"
paths:
- ${CI_PROJECT_DIR}/ifort/LibC
- ${CI_PROJECT_DIR}/ifort/Python_API
tags:
- docker
- sci
- ubuntu
make_release:linux_gfortran:
stage: make_release
script:
- docker build --force-rm -t ci_crysfml_xenial_gfortran -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_gfortran_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_release_gfortran_build -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_release_gfortran_build --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof:/fullprof -v/users/ci/projects/fullprof/hdf5-1_12_0-gfortran:/hdf5 ci_crysfml_xenial_release_gfortran_build
artifacts:
name: "CrysFML Linux gfortran"
paths:
- ${CI_PROJECT_DIR}/gfortran/LibC
- ${CI_PROJECT_DIR}/gfortran/Python_API
tags:
- docker
- sci
- ubuntu
make_release:linux_F2008:
stage: make_release
script:
- docker build --force-rm -t ci_crysfml_xenial_ifort -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_ifort_setup .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_release_build_f2008 -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_xenial_release_build_F2008 --build-arg CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} .
- docker run -i -v${PWD}:/artifacts/ -v/users/ci/projects/fullprof/intel:/opt/intel ci_crysfml_xenial_release_build_f2008
artifacts:
name: "CrysFML08 Linux"
paths:
- ${CI_PROJECT_DIR}/ifort/LibC08
tags:
- docker
- sci
- ubuntu
#===============
make_release:macos:
stage: make_release
script:
- export HDF5_INCLUDE_PATH="/Users/ci/Projects/fullprof/hdf5-ifort/include"
- export HDF5_LIBRARY_PATH="/Users/ci/Projects/fullprof/hdf5-ifort/lib"
- export PYTHON_LIBRARY_PATH="/Users/ci/Projects/fullprof/libpython3.7.dylib"
- export TEST_TRICK_COMMAND="install_name_tool -change /Library/Frameworks/Python.framework/Versions/3.7/Python /usr/local/Cellar/python\@3.8/3.8.3/Frameworks/Python.framework/Versions/3.8/Python Python_API/Tests/CFML_api/crysfml_api.so"
- BuildServer/Unix/build_release.sh
artifacts:
name: "CrysFML macOS"
paths:
- ${CI_PROJECT_DIR}/ifort/LibC
- ${CI_PROJECT_DIR}/ifort/Python_API
tags:
- sci
- osx-10.13
make_release:macos_F2008:
stage: make_release
script:
- BuildServer/Unix/build_release_F2008.sh
artifacts:
name: "CrysFML08 macOS"
paths:
- ${CI_PROJECT_DIR}/ifort/LibC08
tags:
- sci
- osx-10.13
#===============
make_release:windows:
stage: make_release
script:
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
- set PATH=c:\Projects\fullprof\python37\;C:\\Projects\\fullprof\\hdf5-ifort\\bin;%PATH%
- set LIB="C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2020.2.254\\windows\\compiler\\lib\\intel64_win";%LIB%
- set HDF5_INCLUDE_PATH=C:\\Projects\\fullprof\\hdf5-ifort\\include\\shared
- set HDF5_LIBRARY_PATH=C:\\Projects\\fullprof\\hdf5-ifort\\lib
- set PYTHON_LIBRARY_PATH=C:\\Projects\\fullprof\\python37\\libs\\python37.lib
- set PYTHON_INTERPRETER_PATH=C:\\Projects\fullprof\\python37\\python3.exe
- call "BuildServer\\Windows\\build_release.bat"
artifacts:
name: "CrysFML Windows"
paths:
- "%CI_PROJECT_DIR%\\ifort\\LibC"
- "%CI_PROJECT_DIR%\\ifort\\Python_API"
tags:
- sci
- windows-10
make_release:windows_F2008:
stage: make_release
script:
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
- set LIB="C:\\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2020.2.254\\windows\\compiler\\lib\\intel64_win";%LIB%
- call "BuildServer\\Windows\\build_release_F2008.bat"
artifacts:
name: "CrysFML08 Windows"
paths:
- "%CI_PROJECT_DIR%\\ifort\\LibC08"
tags:
- sci
- windows-10