2017-05-17 13:45:30 +05:30
|
|
|
---
|
2017-04-12 16:46:27 +05:30
|
|
|
stages:
|
|
|
|
- prepareAll
|
2019-12-03 21:19:27 +05:30
|
|
|
- python
|
2017-04-13 19:36:35 +05:30
|
|
|
- preprocessing
|
|
|
|
- postprocessing
|
2019-03-09 12:42:56 +05:30
|
|
|
- compilePETSc
|
2019-03-26 13:57:55 +05:30
|
|
|
- prepareGrid
|
|
|
|
- grid
|
2019-02-15 01:07:39 +05:30
|
|
|
- compileMarc
|
2017-04-13 19:36:35 +05:30
|
|
|
- marc
|
|
|
|
- example
|
2017-05-09 03:22:07 +05:30
|
|
|
- performance
|
2018-07-10 16:34:32 +05:30
|
|
|
- createPackage
|
2017-04-12 16:46:27 +05:30
|
|
|
- createDocumentation
|
2017-05-12 13:09:33 +05:30
|
|
|
- saveDocumentation
|
2017-04-20 11:56:09 +05:30
|
|
|
- updateMaster
|
2017-04-13 03:00:33 +05:30
|
|
|
- clean
|
2017-05-12 13:09:33 +05:30
|
|
|
- releaseLock
|
2017-04-12 16:46:27 +05:30
|
|
|
|
|
|
|
###################################################################################################
|
|
|
|
before_script:
|
2020-11-01 15:22:43 +05:30
|
|
|
- if [ $(awk "/$CI_PIPELINE_ID/{print NR}" $LOCAL_HOME/GitLabCI.queue)x == 'x' ];
|
|
|
|
then echo $CI_PIPELINE_ID >> $LOCAL_HOME/GitLabCI.queue;
|
2017-05-17 13:45:30 +05:30
|
|
|
fi
|
2020-11-01 15:22:43 +05:30
|
|
|
- while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $LOCAL_HOME/GitLabCI.queue) != 1 ];
|
2017-05-18 20:37:19 +05:30
|
|
|
do sleep 5m;
|
2020-11-01 15:22:43 +05:30
|
|
|
echo -e "Currently queued pipelines:\n$(cat $LOCAL_HOME/GitLabCI.queue)\n";
|
2017-05-17 13:45:30 +05:30
|
|
|
done
|
2017-05-20 19:06:56 +05:30
|
|
|
- source $DAMASKROOT/env/DAMASK.sh
|
2017-04-12 16:46:27 +05:30
|
|
|
- cd $DAMASKROOT/PRIVATE/testing
|
2018-09-06 21:37:40 +05:30
|
|
|
- echo Job start:" $(date)"
|
2017-04-12 16:46:27 +05:30
|
|
|
|
2018-09-06 19:48:06 +05:30
|
|
|
###################################################################################################
|
|
|
|
after_script:
|
2018-09-06 21:37:40 +05:30
|
|
|
- echo Job end:" $(date)"
|
2018-09-06 21:28:12 +05:30
|
|
|
|
2017-04-12 16:46:27 +05:30
|
|
|
###################################################################################################
|
|
|
|
variables:
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2017-04-12 16:46:27 +05:30
|
|
|
# GitLab Settings
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2017-04-12 16:46:27 +05:30
|
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
|
|
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2017-04-12 16:46:27 +05:30
|
|
|
# Shortcut names
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2020-11-01 15:22:43 +05:30
|
|
|
DAMASKROOT: "$LOCAL_HOME/GitLabCI_Pipeline_$CI_PIPELINE_ID/DAMASK"
|
2020-11-01 17:28:41 +05:30
|
|
|
TESTROOT: "$LOCAL_HOME/GitLabCI_Pipeline_$CI_PIPELINE_ID/tests"
|
2017-04-12 16:46:27 +05:30
|
|
|
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2017-04-12 16:46:27 +05:30
|
|
|
# Names of module files to load
|
2017-05-17 13:45:30 +05:30
|
|
|
# ===============================================================================================
|
2019-03-09 22:00:29 +05:30
|
|
|
# ++++++++++++ Compiler +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2019-02-14 05:40:24 +05:30
|
|
|
IntelCompiler17_8: "Compiler/Intel/17.8 Libraries/IMKL/2017"
|
|
|
|
IntelCompiler18_4: "Compiler/Intel/18.4 Libraries/IMKL/2018"
|
|
|
|
GNUCompiler8_2: "Compiler/GNU/8.2"
|
2017-04-12 16:46:27 +05:30
|
|
|
# ------------ Defaults ----------------------------------------------
|
2019-02-14 05:40:24 +05:30
|
|
|
IntelCompiler: "$IntelCompiler18_4"
|
|
|
|
GNUCompiler: "$GNUCompiler8_2"
|
2019-03-09 22:00:29 +05:30
|
|
|
# ++++++++++++ MPI ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2019-02-14 05:40:24 +05:30
|
|
|
IMPI2018Intel18_4: "MPI/Intel/18.4/IntelMPI/2018"
|
|
|
|
MPICH3_3GNU8_2: "MPI/GNU/8.2/MPICH/3.3"
|
2017-04-12 16:46:27 +05:30
|
|
|
# ------------ Defaults ----------------------------------------------
|
2019-02-14 05:40:24 +05:30
|
|
|
MPICH_Intel: "$IMPI2018Intel18_4"
|
|
|
|
MPICH_GNU: "$MPICH3_3GNU8_2"
|
2019-03-09 22:00:29 +05:30
|
|
|
# ++++++++++++ PETSc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2019-02-14 05:40:24 +05:30
|
|
|
PETSc3_10_3IMPI2018Intel18_4: "Libraries/PETSc/3.10.3/Intel-18.4-IntelMPI-2018"
|
|
|
|
PETSc3_10_3MPICH3_3GNU8_2: "Libraries/PETSc/3.10.3/GNU-8.2-MPICH-3.3"
|
2017-04-12 16:46:27 +05:30
|
|
|
# ------------ Defaults ----------------------------------------------
|
2019-02-14 05:40:24 +05:30
|
|
|
PETSc_MPICH_Intel: "$PETSc3_10_3IMPI2018Intel18_4"
|
|
|
|
PETSc_MPICH_GNU: "$PETSc3_10_3MPICH3_3GNU8_2"
|
2019-03-09 22:00:29 +05:30
|
|
|
# ++++++++++++ commercial FEM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2020-07-16 02:32:47 +05:30
|
|
|
MSC2019_1: "FEM/MSC/2019.1"
|
2017-04-12 16:46:27 +05:30
|
|
|
# ------------ Defaults ----------------------------------------------
|
2020-07-16 02:32:47 +05:30
|
|
|
MSC: "$MSC2019_1"
|
2019-02-14 05:40:24 +05:30
|
|
|
IntelMarc: "$IntelCompiler17_8"
|
2019-10-13 21:50:54 +05:30
|
|
|
HDF5Marc: "HDF5/1.10.5/Intel-17.8"
|
2017-04-12 16:46:27 +05:30
|
|
|
|
|
|
|
###################################################################################################
|
2017-05-17 13:45:30 +05:30
|
|
|
checkout:
|
2017-04-12 16:46:27 +05:30
|
|
|
stage: prepareAll
|
2017-05-17 13:45:30 +05:30
|
|
|
before_script:
|
2020-11-01 15:22:43 +05:30
|
|
|
- echo $CI_PIPELINE_ID >> $LOCAL_HOME/GitLabCI.queue
|
|
|
|
- while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $LOCAL_HOME/GitLabCI.queue) != 1 ];
|
2017-05-18 20:37:19 +05:30
|
|
|
do sleep 5m;
|
2020-11-01 15:22:43 +05:30
|
|
|
echo -e "Currently queued pipelines:\n$(cat $LOCAL_HOME/GitLabCI.queue)\n";
|
2017-05-17 13:45:30 +05:30
|
|
|
done
|
2017-04-12 16:46:27 +05:30
|
|
|
script:
|
2017-04-12 17:58:42 +05:30
|
|
|
- mkdir -p $DAMASKROOT
|
2020-11-01 17:28:41 +05:30
|
|
|
- mkdir -p $TESTROOT
|
2017-04-13 11:25:37 +05:30
|
|
|
- cd $DAMASKROOT
|
2017-05-02 15:51:36 +05:30
|
|
|
- git clone -q git@magit1.mpie.de:damask/DAMASK.git .
|
2017-04-13 11:25:37 +05:30
|
|
|
- git checkout $CI_COMMIT_SHA
|
2017-04-15 16:28:13 +05:30
|
|
|
- git submodule update --init
|
2017-05-20 19:06:56 +05:30
|
|
|
- source env/DAMASK.sh
|
2017-04-18 08:59:00 +05:30
|
|
|
- make processing
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-04-12 16:46:27 +05:30
|
|
|
|
2019-12-03 21:19:27 +05:30
|
|
|
###################################################################################################
|
2020-02-26 17:49:01 +05:30
|
|
|
Pytest_python:
|
2019-12-03 21:19:27 +05:30
|
|
|
stage: python
|
|
|
|
script:
|
|
|
|
- cd $DAMASKROOT/python
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest --basetemp=${TESTROOT}/python -v
|
2019-12-03 21:19:27 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-12 16:46:27 +05:30
|
|
|
###################################################################################################
|
2017-04-13 19:36:35 +05:30
|
|
|
Pre_SeedGeneration:
|
|
|
|
stage: preprocessing
|
|
|
|
script: PreProcessing_SeedGeneration/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Pre_GeomGeneration:
|
|
|
|
stage: preprocessing
|
|
|
|
script: PreProcessing_GeomGeneration/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Pre_GeomModification:
|
|
|
|
stage: preprocessing
|
|
|
|
script: PreProcessing_GeomModification/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Pre_General:
|
|
|
|
stage: preprocessing
|
|
|
|
script: PreProcessing/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
###################################################################################################
|
2018-12-21 11:57:03 +05:30
|
|
|
Post_General:
|
|
|
|
stage: postprocessing
|
|
|
|
script: PostProcessing/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-04-13 19:36:35 +05:30
|
|
|
|
|
|
|
Post_GeometryReconstruction:
|
|
|
|
stage: postprocessing
|
2019-03-26 13:57:55 +05:30
|
|
|
script: spectral_geometryReconstruction/test.py
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Post_addCurl:
|
|
|
|
stage: postprocessing
|
|
|
|
script: addCurl/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Post_addDivergence:
|
|
|
|
stage: postprocessing
|
|
|
|
script: addDivergence/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Post_addGradient:
|
|
|
|
stage: postprocessing
|
|
|
|
script: addGradient/test.py
|
|
|
|
except:
|
|
|
|
- master
|
2018-11-25 15:04:42 +05:30
|
|
|
- release
|
|
|
|
|
2019-04-18 17:57:07 +05:30
|
|
|
Post_OrientationAverageMisorientation:
|
|
|
|
stage: postprocessing
|
|
|
|
script:
|
|
|
|
- OrientationAverageMisorientation/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
###################################################################################################
|
2019-03-24 02:03:59 +05:30
|
|
|
grid_mech_compile_Intel:
|
2019-03-09 12:42:56 +05:30
|
|
|
stage: compilePETSc
|
2017-04-13 19:36:35 +05:30
|
|
|
script:
|
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
2019-03-23 14:01:13 +05:30
|
|
|
- cp -r grid_mech_compile grid_mech_compile_Intel
|
|
|
|
- grid_mech_compile_Intel/test.py
|
2020-10-05 22:36:19 +05:30
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'compile and grid' --basetemp=${TESTROOT}/compile_grid_Intel
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2018-08-20 12:43:20 +05:30
|
|
|
Compile_FEM_Intel:
|
2019-03-09 12:42:56 +05:30
|
|
|
stage: compilePETSc
|
2018-08-20 12:43:20 +05:30
|
|
|
script:
|
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
2019-03-09 12:42:56 +05:30
|
|
|
- cp -r FEM_compile FEM_compile_Intel
|
|
|
|
- FEM_compile_Intel/test.py
|
2020-10-05 22:36:19 +05:30
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'compile and mesh' --basetemp=${TESTROOT}/compile_mesh_Intel
|
2018-08-20 12:43:20 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2019-03-24 02:03:59 +05:30
|
|
|
grid_mech_compile_GNU:
|
2019-03-09 12:42:56 +05:30
|
|
|
stage: compilePETSc
|
2017-04-13 19:36:35 +05:30
|
|
|
script:
|
|
|
|
- module load $GNUCompiler $MPICH_GNU $PETSc_MPICH_GNU
|
2019-03-23 14:01:13 +05:30
|
|
|
- cp -r grid_mech_compile grid_mech_compile_GNU
|
|
|
|
- grid_mech_compile_GNU/test.py
|
2020-10-05 22:36:19 +05:30
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'compile and grid' --basetemp=${TESTROOT}/compile_grid_GNU
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2018-08-20 12:43:20 +05:30
|
|
|
Compile_FEM_GNU:
|
2019-03-09 12:42:56 +05:30
|
|
|
stage: compilePETSc
|
2018-08-20 12:43:20 +05:30
|
|
|
script:
|
|
|
|
- module load $GNUCompiler $MPICH_GNU $PETSc_MPICH_GNU
|
2019-03-09 12:42:56 +05:30
|
|
|
- cp -r FEM_compile FEM_compile_GNU
|
|
|
|
- FEM_compile_GNU/test.py
|
2020-10-05 22:36:19 +05:30
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'compile and mesh' --basetemp=${TESTROOT}/compile_mesh_GNU
|
2018-08-20 12:43:20 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
###################################################################################################
|
|
|
|
Compile_Intel_Prepare:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: prepareGrid
|
2017-04-19 14:20:07 +05:30
|
|
|
script:
|
2017-05-02 15:51:36 +05:30
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
2017-04-19 14:20:07 +05:30
|
|
|
- cd $DAMASKROOT
|
2019-03-26 13:57:55 +05:30
|
|
|
- make clean grid processing
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-05-17 13:45:30 +05:30
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
###################################################################################################
|
2020-09-25 11:45:22 +05:30
|
|
|
Pytest_grid:
|
|
|
|
stage: grid
|
|
|
|
script:
|
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'not compile' --basetemp=${TESTROOT}/fortran -v
|
2020-09-25 11:45:22 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2018-11-25 15:04:42 +05:30
|
|
|
Thermal:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2018-11-25 15:04:42 +05:30
|
|
|
script: Thermal/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2019-03-24 14:51:01 +05:30
|
|
|
grid_parsingArguments:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2019-03-24 14:51:01 +05:30
|
|
|
script: grid_parsingArguments/test.py
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Nonlocal_Damage_DetectChanges:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2017-04-13 19:36:35 +05:30
|
|
|
script: Nonlocal_Damage_DetectChanges/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2019-03-24 02:03:59 +05:30
|
|
|
grid_all_restart:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2019-03-23 15:21:21 +05:30
|
|
|
script: grid_all_restart/test.py
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2019-03-24 18:36:14 +05:30
|
|
|
grid_all_restartMPI:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2018-11-19 00:47:07 +05:30
|
|
|
script:
|
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
2019-03-24 18:36:14 +05:30
|
|
|
- grid_all_restartMPI/test.py
|
2018-11-19 00:47:07 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
Plasticity_DetectChanges:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2017-04-13 19:36:35 +05:30
|
|
|
script: Plasticity_DetectChanges/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
Phenopowerlaw_singleSlip:
|
2019-03-26 13:57:55 +05:30
|
|
|
stage: grid
|
2017-04-13 19:36:35 +05:30
|
|
|
script: Phenopowerlaw_singleSlip/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
###################################################################################################
|
2019-09-20 06:51:53 +05:30
|
|
|
Marc_compileIfort:
|
2019-09-19 23:23:52 +05:30
|
|
|
stage: compileMarc
|
|
|
|
script:
|
2019-09-20 06:51:53 +05:30
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
2020-10-05 22:36:19 +05:30
|
|
|
- cd pytest
|
2020-11-01 17:28:41 +05:30
|
|
|
- pytest -k 'compile and Marc' --basetemp=${TESTROOT}/compile_Marc
|
2019-09-19 23:23:52 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
###################################################################################################
|
|
|
|
Hex_elastic:
|
|
|
|
stage: marc
|
|
|
|
script:
|
2019-03-09 22:00:29 +05:30
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
2017-04-13 19:36:35 +05:30
|
|
|
- Hex_elastic/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
CubicFCC_elastic:
|
|
|
|
stage: marc
|
|
|
|
script:
|
2019-03-09 22:00:29 +05:30
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
2017-04-13 19:36:35 +05:30
|
|
|
- CubicFCC_elastic/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
CubicBCC_elastic:
|
|
|
|
stage: marc
|
|
|
|
script:
|
2019-03-09 22:00:29 +05:30
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
2017-04-13 19:36:35 +05:30
|
|
|
- CubicBCC_elastic/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
J2_plasticBehavior:
|
|
|
|
stage: marc
|
|
|
|
script:
|
2019-03-09 22:00:29 +05:30
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
2017-04-13 19:36:35 +05:30
|
|
|
- J2_plasticBehavior/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2020-01-13 15:08:32 +05:30
|
|
|
Marc_elementLib:
|
|
|
|
stage: marc
|
|
|
|
script:
|
|
|
|
- module load $IntelMarc $HDF5Marc $MSC
|
|
|
|
- Marc_elementLib/test.py
|
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
2017-04-13 19:36:35 +05:30
|
|
|
###################################################################################################
|
2019-03-25 03:40:04 +05:30
|
|
|
grid_all_example:
|
2017-04-13 19:36:35 +05:30
|
|
|
stage: example
|
2019-03-25 03:40:04 +05:30
|
|
|
script: grid_all_example/test.py
|
2019-09-12 00:39:10 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-04-13 19:36:35 +05:30
|
|
|
|
2017-05-09 03:22:07 +05:30
|
|
|
###################################################################################################
|
|
|
|
SpectralRuntime:
|
|
|
|
stage: performance
|
2017-04-12 16:46:27 +05:30
|
|
|
script:
|
2017-05-09 03:22:07 +05:30
|
|
|
- module load $IntelCompiler $MPICH_Intel $PETSc_MPICH_Intel
|
2017-04-13 03:00:33 +05:30
|
|
|
- cd $DAMASKROOT
|
2019-03-26 13:57:55 +05:30
|
|
|
- make clean grid processing OPTIMIZATION=AGGRESSIVE
|
2020-11-01 15:22:43 +05:30
|
|
|
- cd $LOCAL_HOME/performance # location of old results
|
2017-05-16 09:58:46 +05:30
|
|
|
- git checkout . # undo any changes (i.e. run time data from non-development branch)
|
2017-05-09 03:22:07 +05:30
|
|
|
- cd $DAMASKROOT/PRIVATE/testing
|
2020-11-01 15:22:43 +05:30
|
|
|
- SpectralAll_runtime/test.py -d $LOCAL_HOME/performance
|
2017-05-09 03:22:07 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-05-17 13:45:30 +05:30
|
|
|
|
2018-07-10 16:34:32 +05:30
|
|
|
###################################################################################################
|
|
|
|
createTar:
|
|
|
|
stage: createPackage
|
|
|
|
script:
|
|
|
|
- cd $(mktemp -d)
|
|
|
|
- $DAMASKROOT/PRIVATE/releasing/deployMe.sh $CI_COMMIT_SHA
|
2018-08-06 02:20:43 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2018-07-10 16:34:32 +05:30
|
|
|
|
2017-04-12 16:46:27 +05:30
|
|
|
###################################################################################################
|
2020-11-01 15:20:03 +05:30
|
|
|
Python:
|
2017-04-12 16:46:27 +05:30
|
|
|
stage: createDocumentation
|
|
|
|
script:
|
2020-11-01 15:20:03 +05:30
|
|
|
- echo 'tbd one matesting1'
|
2019-02-17 12:30:26 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
2017-04-13 03:00:33 +05:30
|
|
|
|
2017-05-12 13:09:33 +05:30
|
|
|
##################################################################################################
|
2017-05-17 13:45:30 +05:30
|
|
|
backupData:
|
2017-05-12 13:09:33 +05:30
|
|
|
stage: saveDocumentation
|
|
|
|
script:
|
2020-11-01 15:22:43 +05:30
|
|
|
- cd $LOCAL_HOME/performance # location of new runtime results
|
2017-05-16 09:58:46 +05:30
|
|
|
- git commit -am"${CI_PIPELINE_ID}_${CI_COMMIT_SHA}"
|
2017-05-13 19:57:11 +05:30
|
|
|
- mkdir $BACKUP/${CI_PIPELINE_ID}_${CI_COMMIT_SHA}
|
2020-11-01 15:22:43 +05:30
|
|
|
- mv $LOCAL_HOME/performance/time.png $BACKUP/${CI_PIPELINE_ID}_${CI_COMMIT_SHA}/
|
|
|
|
- mv $LOCAL_HOME/performance/memory.png $BACKUP/${CI_PIPELINE_ID}_${CI_COMMIT_SHA}/
|
2017-05-13 19:57:11 +05:30
|
|
|
- mv $DAMASKROOT/PRIVATE/documenting/DAMASK_* $BACKUP/${CI_PIPELINE_ID}_${CI_COMMIT_SHA}/
|
2017-05-16 06:46:27 +05:30
|
|
|
only:
|
|
|
|
- development
|
2017-05-12 13:09:33 +05:30
|
|
|
|
2017-05-09 03:22:07 +05:30
|
|
|
##################################################################################################
|
2017-05-17 13:45:30 +05:30
|
|
|
mergeIntoMaster:
|
2017-05-09 03:22:07 +05:30
|
|
|
stage: updateMaster
|
|
|
|
script:
|
|
|
|
- cd $DAMASKROOT
|
|
|
|
- export TESTEDREV=$(git describe) # might be detached from development branch
|
|
|
|
- echo $TESTEDREV > VERSION
|
|
|
|
- git commit VERSION -m "[skip ci] updated version information after successful test of $TESTEDREV"
|
|
|
|
- export UPDATEDREV=$(git describe) # tested state + 1 commit
|
|
|
|
- git checkout master
|
|
|
|
- git merge $UPDATEDREV -s recursive -X ours # conflicts occur only for inconsistent state
|
|
|
|
- git push origin master # master is now tested version and has updated VERSION file
|
|
|
|
- git checkout development
|
|
|
|
- git pull
|
|
|
|
- git merge master -s recursive -X ours -m "[skip ci] Merge branch 'master' into development" # only possible conflict is in VERSION file
|
|
|
|
- git push origin development # development is unchanged (as master is based on it) but has updated VERSION file
|
|
|
|
only:
|
|
|
|
- development
|
|
|
|
|
2017-04-13 03:00:33 +05:30
|
|
|
###################################################################################################
|
2017-05-13 19:57:11 +05:30
|
|
|
removeData:
|
2017-04-13 03:00:33 +05:30
|
|
|
stage: clean
|
2017-05-13 19:57:11 +05:30
|
|
|
before_script:
|
2020-09-12 18:55:37 +05:30
|
|
|
- echo "Removing data and lock of pipeline $CI_PIPELINE_ID"
|
2017-05-12 13:09:33 +05:30
|
|
|
script:
|
2020-11-01 15:22:43 +05:30
|
|
|
- rm -rf $LOCAL_HOME/GitLabCI_Pipeline_$CI_PIPELINE_ID
|
|
|
|
- sed -i "/$CI_PIPELINE_ID/d" $LOCAL_HOME/GitLabCI.queue # in case pipeline was manually (web GUI) restarted and releaseLock was performed already
|
2017-05-12 13:09:33 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|
|
|
|
|
|
|
|
###################################################################################################
|
2017-05-17 13:45:30 +05:30
|
|
|
removeLock:
|
2017-05-12 13:09:33 +05:30
|
|
|
stage: releaseLock
|
2017-05-17 13:45:30 +05:30
|
|
|
before_script:
|
2020-09-12 18:55:37 +05:30
|
|
|
- echo "Removing lock of pipeline $CI_PIPELINE_ID"
|
2017-04-13 03:00:33 +05:30
|
|
|
when: always
|
2020-11-01 15:22:43 +05:30
|
|
|
script: sed -i "/$CI_PIPELINE_ID/d" $LOCAL_HOME/GitLabCI.queue
|
2017-04-13 19:36:35 +05:30
|
|
|
except:
|
|
|
|
- master
|
|
|
|
- release
|