.gitlab-ci.yml 17.5 KB
Newer Older
1
image: gitlab-registry.mpcdf.mpg.de/tpurcell/cpp_sisso
Thomas Purcell's avatar
Thomas Purcell committed
2
3
4

stages:
  - build
Thomas Purcell's avatar
Thomas Purcell committed
5
6
  - unit_test
  - bin_test
Thomas Purcell's avatar
Thomas Purcell committed
7
  - doc_builds
Thomas Purcell's avatar
Thomas Purcell committed
8

Thomas Purcell's avatar
Thomas Purcell committed
9
build-intel-base:
10
11
  stage: build
  script:
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
    - mkdir build_intel_base/
    - cd build_intel_base/
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - cmake -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILE=icc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=ON -DBUILD_PARAMS=OFF -DBUILD_PYTHON=OFF -DCMAKE_INSTALL_PREFIX=../intel_base/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - intel_base/
    expire_in: 1 days

build-intel-py:
  stage: build
  script:
    - python -m venv cpp_sisso_env_intel_py
    - source cpp_sisso_env_intel_py/bin/activate
    - mkdir build_intel_py/
    - cd build_intel_py/
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_py/lib/python3.7/site-packages/
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - cmake -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILE=icc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=OFF -DBUILD_PARAMS=OFF -DBUILD_PYTHON=ON -DCMAKE_INSTALL_PREFIX=../intel_py/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - intep_py/
      - cpp_sisso_env_intel_py/*
    expire_in: 1 days

build-intel-param:
  stage: build
  script:
    - mkdir build_intel_param/
    - cd build_intel_param/
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - cmake -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILE=icc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=ON -DBUILD_PARAMS=ON -DBUILD_PYTHON=OFF -DCMAKE_INSTALL_PREFIX=../intel_param/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - intel_param/
    expire_in: 1 days

build-intel-param-py:
  stage: build
  script:
    - python -m venv cpp_sisso_env_intel_param_py
    - source cpp_sisso_env_intel_param_py/bin/activate
78
79
80
81
82
83
    - mkdir build_intel/
    - cd build_intel/
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
84
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_param_py/lib/python3.7/site-packages/
85
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
86
    - cmake -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILE=icc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=OFF -DBUILD_PARAMS=ON -DBUILD_PYTHON=ON -DCMAKE_INSTALL_PREFIX=../intel_param_py/ ../
87
88
89
90
91
92
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
93
94
      - intel_param_py/
      - cpp_sisso_env_intel_param_py/
95
96
    expire_in: 1 days

97
test-intel-pytest-py:
98
99
  stage: unit_test
  dependencies:
100
    - build-intel-py
101
  script:
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
    - source cpp_sisso_env_intel_py/bin/activate
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_py/lib/python3.7/site-packages/
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - pytest --ignore=tests/pytest/test_param.py --ignore=tests/pytest/test_feature_creation/test_parameterize/ --ignore=tests/pytest/test_model_eval/test_param_model_node/ --ignore=tests/pytest/test_model_eval/test_models/test_reg_model_param.py tests/pytest

test-intel-pytest-param-py:
  stage: unit_test
  dependencies:
    - build-intel-param-py
  script:
    - source cpp_sisso_env_intel_param_py/bin/activate
119
120
121
122
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
123
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_param_py/lib/python3.7/site-packages/
124
125
126
127
128
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - pytest tests/pytest

129
test-intel-base-googletest:
130
131
  stage: unit_test
  dependencies:
132
    - build-intel-base
133
134
135
136
137
138
139
140
  script:
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
141
    - cd intel_base/tests/
142
143
    - googletest/sisso_test

144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
test-intel-param-googletest:
  stage: unit_test
  dependencies:
    - build-intel-param
  script:
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - cd intel_base/tests/
    - googletest/sisso_test

test-intel-bin-param:
160
161
  stage: bin_test
  dependencies:
162
    - build-intel-param-py
163
  script:
164
    - source cpp_sisso_env_intel_param_py/bin/activate
165
166
167
168
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
169
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_param_py/lib/python3.7/site-packages/
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=1
    - cd tests/exec_test/default/
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../classification/
    - mpiexec -n 1 ../../../bin/sisso++
    - python check_model.py
    - cd ../gen_proj
    - mpiexec -n 2 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../log_reg
    - mpiexec -n 2 ../../../bin/sisso++
    - python check_model.py
    - cd ../max_corr
    - mpiexec -n 2 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../param
    - mpiexec -n 2 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../reparam
    - mpiexec -n 2 ../../../bin/sisso++
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
    - python check_model.py
    - cd ../../../

test-intel-bin-base:
  stage: bin_test
  dependencies:
    - build-intel-py
  script:
    - source cpp_sisso_env_intel_py/bin/activate
    - export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
    - export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
    - export MKLROOT=/home/runner/intel/oneapi/mkl/latest/
    - export LD_LIBRARY_PATH=$I_MPI_ROOT/lib/:$I_MPI_ROOT/lib/release:$MKLROOT/lib/intel64:$INTEL_COMP_ROOT/lib/:$INTEL_COMP_ROOT/compiler/lib/intel64/:$LD_LIBRARY_PATH:$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_env_intel_py/lib/python3.7/site-packages/
    - export PATH=$INTEL_COMP_ROOT/bin/:$INTEL_COMP_ROOT/bin/intel64:$I_MPI_ROOT/bin:$PATH
    - export OMP_NUM_THREADS=1
    - cd tests/exec_test/default/
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../classification/
    - mpiexec -n 1 ../../../bin/sisso++
    - python check_model.py
    - cd ../gen_proj
    - mpiexec -n 2 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../log_reg
    - mpiexec -n 2 ../../../bin/sisso++
    - python check_model.py
    - cd ../max_corr
    - mpiexec -n 2 ../../../bin/sisso++
222
223
    - cd ../../../

224
build-gnu-base:
Thomas Purcell's avatar
Thomas Purcell committed
225
226
  stage: build
  script:
227
228
    - conda info --envs
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
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
    - mkdir build_gcc_base/
    - cd build_gcc_base/
    - cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILE=gcc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=ON -DBUILD_PARAMS=OFF -DBUILD_PYTHON=OFF  -DCMAKE_INSTALL_PREFIX=../gcc_base/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - gcc_base/

build-gnu-param:
  stage: build
  script:
    - conda info --envs
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
    - mkdir build_gcc_param/
    - cd build_gcc_param/
    - cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILE=gcc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=ON -DBUILD_PARAMS=ON -DBUILD_PYTHON=OFF  -DCMAKE_INSTALL_PREFIX=../gcc_param/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - gcc_param/

build-gnu-py:
  stage: build
  script:
    - conda info --envs
    - python -m venv cpp_sisso_gcc_py_env
    - source cpp_sisso_gcc_py_env/bin/activate
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_py_env/lib/python3.7/site-packages/
    - mkdir build_py/
    - cd build_py/
    - cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILE=gcc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=OFF -DBUILD_PARAMS=OFF -DBUILD_PYTHON=ON  -DCMAKE_INSTALL_PREFIX=../gcc_py/ ../
    - make
    - make install
    - cd ../
  artifacts:
    when: always
    paths:
      - gcc_py/
      - cpp_sisso_gcc_py_env/
275

276
277
278
279
280
281
282
283
284
285
286
build-gnu-param-py:
  stage: build
  script:
    - conda info --envs
    - python -m venv cpp_sisso_gcc_param_py_env
    - source cpp_sisso_gcc_param_py_env/bin/activate
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_param_py_env/lib/python3.7/site-packages/
    - mkdir build_param_py/
    - cd build_param_py/
    - cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILE=gcc -DCMAKE_CXX_FLAGS="-O3" -DBUILD_TESTS=OFF -DBUILD_PARAMS=ON -DBUILD_PYTHON=ON  -DCMAKE_INSTALL_PREFIX=../gcc_param_py/ ../
Thomas Purcell's avatar
Thomas Purcell committed
287
288
    - make
    - make install
Thomas Purcell's avatar
Thomas Purcell committed
289
    - cd ../
Thomas Purcell's avatar
Thomas Purcell committed
290
291
292
  artifacts:
    when: always
    paths:
293
294
295
296
      - gcc_param_py/
      - cpp_sisso_gcc_param_py_env/

test-gnu-pytest-py:
Thomas Purcell's avatar
Thomas Purcell committed
297
  stage: unit_test
Thomas Purcell's avatar
Thomas Purcell committed
298
  dependencies:
299
    - build-gnu-py
Thomas Purcell's avatar
Thomas Purcell committed
300
  script:
301
    - source cpp_sisso_gcc_py_env/bin/activate
302
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
303
304
305
306
307
308
309
310
311
312
313
314
315
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_py_env/lib/python3.7/site-packages/
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - pytest --ignore=tests/pytest/test_param.py --ignore=tests/pytest/test_feature_creation/test_parameterize/ --ignore=tests/pytest/test_model_eval/test_param_model_node/ --ignore=tests/pytest/test_model_eval/test_models/test_reg_model_param.py tests/pytest

test-gnu-pytest-param-py:
  stage: unit_test
  dependencies:
    - build-gnu-param-py
  script:
    - source cpp_sisso_gcc_param_py_env/bin/activate
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_param_py_env/lib/python3.7/site-packages/
316
317
318
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - pytest tests/pytest
319

320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
test-gnu-base-googletest:
  stage: unit_test
  dependencies:
    - build-gnu-base
  script:
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - cd gcc_base/tests/
    - googletest/sisso_test

test-gnu-param-googletest:
  stage: unit_test
  dependencies:
    - build-gnu-param
  script:
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - cd gcc_param/tests/
    - googletest/sisso_test


341
342
343
344
345
test-gnu-googletest:
  stage: unit_test
  dependencies:
    - build-gnu
  script:
346
347
348
349
    - source cpp_sisso_env/bin/activate
    - export OMP_NUM_THREADS=2
    - export OMP_PLACES=cores
    - cd tests/
Thomas Purcell's avatar
Thomas Purcell committed
350
    - googletest/sisso_test
Thomas Purcell's avatar
Thomas Purcell committed
351

352
test-gnu-bin-param:
Thomas Purcell's avatar
Thomas Purcell committed
353
  stage: bin_test
Thomas Purcell's avatar
Thomas Purcell committed
354
  dependencies:
355
    - build-gnu-param-py
Thomas Purcell's avatar
Thomas Purcell committed
356
  script:
357
    - source cpp_sisso_gcc_param_py_env/bin/activate
358
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
359
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_param_py_env/lib/python3.7/site-packages/
360
    - export OMP_NUM_THREADS=1
361
362
363
364
365
    - cd tests/exec_test/default/
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../classification/
    - mpiexec -n 1 ../../../bin/sisso++
366
    - python check_model.py
367
    - cd ../gen_proj
368
    - mpiexec -n 1 ../../../bin/sisso++
369
    - python ../check_model.py
370
    - cd ../log_reg
371
    - mpiexec -n 1 ../../../bin/sisso++
Thomas Purcell's avatar
Thomas Purcell committed
372
    - python check_model.py
373
    - cd ../max_corr
374
    - mpiexec -n 1 ../../../bin/sisso++
375
    - python ../check_model.py
376
377
378
379
380
    - cd ../param
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../reparam
    - mpiexec -n 1 ../../../bin/sisso++
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
    - python check_model.py
    - cd ../../../

test-gnu-bin-base:
  stage: bin_test
  dependencies:
    - build-gnu-py
  script:
    - source cpp_sisso_gcc_py_env/bin/activate
    - export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
    - export PYTHONPATH=$HOME/intel/oneapi/intelpython/latest/lib/python3.7/site-packages/:cpp_sisso_gcc_py_env/lib/python3.7/site-packages/
    - export OMP_NUM_THREADS=1
    - cd tests/exec_test/default/
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../classification/
    - mpiexec -n 1 ../../../bin/sisso++
    - python check_model.py
    - cd ../gen_proj
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
    - cd ../log_reg
    - mpiexec -n 1 ../../../bin/sisso++
    - python check_model.py
    - cd ../max_corr
    - mpiexec -n 1 ../../../bin/sisso++
    - python ../check_model.py
408
    - cd ../../../
Thomas Purcell's avatar
Thomas Purcell committed
409
410

pages:
411
  stage: doc_builds
Thomas Purcell's avatar
Thomas Purcell committed
412
  script:
413
    - source cpp_sisso_env/bin/activate
414
415
    - cd docs/
    - make html
Thomas Purcell's avatar
Thomas Purcell committed
416
    - mv _build/html/ ../public
Thomas Purcell's avatar
Thomas Purcell committed
417
418
419
420
421
422
423
  artifacts:
    paths:
    - public
  only:
  - master
  - docs
  - joss