Commit 328f95fc authored by Patryk Kiepas's avatar Patryk Kiepas 🐦
Browse files

Reusing gnu build result between jobs; making jean-zay check manual only

parent 29fa673b
Pipeline #176970 passed with stages
in 5 minutes and 18 seconds
...@@ -24,7 +24,20 @@ variables: ...@@ -24,7 +24,20 @@ variables:
paths: paths:
- tmp/ - tmp/
build-gnu: build-gnu-mpi:
variables:
COMP: gnu
PARALLEL: mpi
CPU: native
<<: *build-generic
artifacts:
paths:
- lib/
- bin/
- arch.*
- tmp/
build-gnu-mpi-omp:
variables: variables:
COMP: gnu COMP: gnu
PARALLEL: mpi_omp PARALLEL: mpi_omp
...@@ -70,29 +83,11 @@ build-xml: ...@@ -70,29 +83,11 @@ build-xml:
- ./make_icosa -arch xmp -parallel $PARALLEL -no_io -job 8 2>&1 | tee tmp/$COMP.log - ./make_icosa -arch xmp -parallel $PARALLEL -no_io -job 8 2>&1 | tee tmp/$COMP.log
- grep -q 'Build command finished' tmp/$COMP.log - grep -q 'Build command finished' tmp/$COMP.log
build-python:
only:
- devel2master
- converge/devel
variables:
COMP: gnu
PARALLEL: mpi_omp
CPU: skylake
<<: *build-generic
script:
- TARGET=$CPU ./make_icosa -arch $COMP -parallel $PARALLEL -with_xios -job 8 2>&1 | tee tmp/$COMP.log
- grep -q 'Build command finished' tmp/$COMP.log
- ./make_python && cd Python/test && jobs/gen_mpi_mesh_info.sh
artifacts:
paths:
- tmp/
- Python/test/grids/
#============================== CHECK ============================# #============================== CHECK ============================#
check-jean-zay: # remove dot to activate job check-jean-zay: # remove dot to activate job
allow_failure: true
stage: check stage: check
when: manual
needs: ["build-nvidia"] needs: ["build-nvidia"]
tags: tags:
- jean-zay - jean-zay
...@@ -114,18 +109,10 @@ check-jean-zay: # remove dot to activate job ...@@ -114,18 +109,10 @@ check-jean-zay: # remove dot to activate job
- rundir - rundir
check-dcmip41: check-dcmip41:
allow_failure: true
stage: check stage: check
needs: ["build-gnu"] needs: ["build-gnu-mpi"]
image: gitlab-registry.in2p3.fr/ipsl/projets/dynamico/dockerimages/$COMP/xios:$XIOS_REV image: gitlab-registry.in2p3.fr/ipsl/projets/dynamico/dockerimages/gnu/xios:$XIOS_REV
variables:
COMP: gnu
PARALLEL: mpi
CPU: native
script: script:
- cp $EXTRA_ARCH/* arch/ && mkdir -p tmp
- TARGET=$CPU ./make_icosa -arch $COMP -parallel $PARALLEL -with_xios -job 8 2>&1 | tee tmp/$COMP.log
- grep -q 'Build command finished' tmp/$COMP.log
- test/bash/run_mpi.sh 8 - test/bash/run_mpi.sh 8
- apt update && apt -yqq install jupyter-notebook python3-netcdf4 python3-matplotlib jupyter-nbconvert texlive-fonts-recommended texlive-generic-recommended texlive-xetex - apt update && apt -yqq install jupyter-notebook python3-netcdf4 python3-matplotlib jupyter-nbconvert texlive-fonts-recommended texlive-generic-recommended texlive-xetex
- cd rundir - cd rundir
...@@ -133,25 +120,3 @@ check-dcmip41: ...@@ -133,25 +120,3 @@ check-dcmip41:
artifacts: artifacts:
paths: paths:
- rundir/ - rundir/
#============================== DEPLOY ============================#
pages:
stage: deploy
only:
- devel2master
variables:
COMP: gnu
PARALLEL: mpi_omp
CPU: skylake
REVISION: $CI_COMMIT_REF_NAME:$CI_COMMIT_SHORT_SHA
artifacts:
paths:
- public/
expire_in: 1h
image: gitlab-registry.in2p3.fr/ipsl/projets/dynamico/dockerimages/$COMP/xios:$XIOS_REV
script:
- apt install -yqq doxygen graphviz
- cp $EXTRA_ARCH/* arch
- TARGET=$CPU ./make_icosa -arch $COMP -parallel $PARALLEL -debug -with_xios -job 8
- doc/dox.sh $REVISION
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment