Skip to content

Commit 9480e40

Browse files
committed
canonical way for activation of virtual env
1 parent 0be4901 commit 9480e40

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.gitlab-ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Marc_Intel:
249249
tags:
250250
- bare-metal
251251
script:
252-
- PATH=/opt/venv/bin:${PATH}
252+
- source /opt/venv/bin/activate
253253
- module load $IntelMarc $HDF5Marc $MSC
254254
- cd PRIVATE/testing
255255
- pytest -k 'compile and Marc' --basetemp ${TESTROOT}/compile_Marc
@@ -259,7 +259,7 @@ setup_Marc:
259259
tags:
260260
- bare-metal
261261
script:
262-
- PATH=/opt/venv/bin:${PATH}
262+
- source /opt/venv/bin/activate
263263
- module load $IntelMarc $HDF5Marc $MSC
264264
- cd $(mktemp -d)
265265
- cp ${CI_PROJECT_DIR}/examples/Marc/* .
@@ -286,7 +286,7 @@ open-source_grid_signal_restart:
286286
tags:
287287
- bare-metal
288288
before_script:
289-
- PATH=/opt/venv/bin:${PATH}
289+
- source /opt/venv/bin/activate
290290
- module load ${COMPILER_INTEL} ${PETSC_INTEL}
291291
- cd $(mktemp -d)
292292
- cmake -DDAMASK_SOLVER=GRID -DCMAKE_INSTALL_PREFIX=${TESTROOT} ${CI_PROJECT_DIR}
@@ -318,7 +318,7 @@ Marc:
318318
tags:
319319
- bare-metal
320320
script:
321-
- PATH=/opt/venv/bin:${PATH}
321+
- source /opt/venv/bin/activate
322322
- cd PRIVATE/testing
323323
- pytest -k 'not compile and Marc' -m 'not cifail' --damask-root=${TESTROOT} --basetemp ${TESTROOT}/Marc -v
324324

@@ -335,7 +335,7 @@ grid_performance:
335335
- bare-metal
336336
before_script:
337337
- ${LOCAL_HOME}/bin/queue ${CI_JOB_ID} ${TOKEN} --blocking
338-
- PATH=/opt/venv/bin:${PATH}
338+
- source /opt/venv/bin/activate
339339
- source env/DAMASK.sh
340340
- echo Job start:" $(date)"
341341
script:
@@ -378,7 +378,7 @@ update_revision:
378378
- bare-metal
379379
before_script:
380380
- ${LOCAL_HOME}/bin/queue ${CI_JOB_ID} ${TOKEN}
381-
- PATH=/opt/venv/bin:${PATH}
381+
- source /opt/venv/bin/activate
382382
- echo Job start:" $(date)"
383383
script:
384384
- cd $(mktemp -d)

0 commit comments

Comments
 (0)