1 # Set up to only fetch the files and prepare everything for merge requests
2 .regressiontests-template:
3 image: biophysics/gcc-gromacs
7 KUBERNETES_CPU_LIMIT: 1
8 KUBERNETES_CPU_REQUEST: 1
9 KUBERNETES_MEMORY_LIMIT: 2Gi
19 # Always clone the default version for this branch, release-2020 in this case
21 - export REGTESTBRANCH=release-2020
22 - if [[ ! -d regressiontests ]] ; then
23 mkdir regressiontests ;
29 - git fetch https://gitlab.com/gromacs/gromacs-regressiontests.git $REGTESTBRANCH
30 - git checkout -qf FETCH_HEAD
33 - git archive -o gmx-regressiontests.tar.gz --prefix regressiontests/ -9 HEAD
34 - echo "Build regressiontests for branch $REGTESTBRANCH"
35 - mv gmx-regressiontests.tar.gz ..
39 - gmx-regressiontests.tar.gz
41 .regressiontests-release-template:
42 image: biophysics/gcc-gromacs
43 stage: release-package
46 KUBERNETES_CPU_LIMIT: 1
47 KUBERNETES_CPU_REQUEST: 1
48 KUBERNETES_MEMORY_LIMIT: 2Gi
57 - VERSION=`cat version.json |
58 python3 -c "import json,sys; print(json.load(sys.stdin)['version'])"`
59 - REGTESTNAME="regressiontests-"$VERSION
60 - if [[ $GROMACS_RELEASE != "true" ]] ; then
61 REGTESTNAME=$REGTESTNAME-dev ;
63 - export REGTESTBRANCH=release-2020
64 - if [[ $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME == "release-20"[1-2][0-9] ]] ; then
65 export REGTESTBRANCH=$CI_COMMIT_REF_NAME ;
67 - if [[ ! -d regressiontests ]] ; then
68 mkdir regressiontests ;
74 - git fetch https://gitlab.com/gromacs/gromacs-regressiontests.git $REGTESTBRANCH
75 - git checkout -qf FETCH_HEAD
78 - git archive -o $REGTESTNAME.tar.gz --prefix $REGTESTNAME/ -9 HEAD
79 - mv $REGTESTNAME.tar.gz ..
80 - echo "Build regressiontests for branch $REGTESTBRANCH"
84 - regressiontests-*.tar.gz