Consolidate global mix-ins.
[alexxy/gromacs.git] / admin / gitlab-ci / global.gitlab-ci.yml
1 .variables:default:
2   variables:
3     KUBERNETES_CPU_LIMIT: 8
4     KUBERNETES_CPU_REQUEST: 4
5     KUBERNETES_MEMORY_LIMIT: 8Gi
6     KUBERNETES_EXTENDED_RESOURCE_NAME: ""
7     KUBERNETES_EXTENDED_RESOURCE_LIMIT: 0
8     CACHE_FALLBACK_KEY: "$CI_JOB_NAME-$CI_JOB_STAGE-master"
9     BUILD_DIR: build
10     INSTALL_DIR: install
11
12 .build-cache-template:
13   cache:
14     key: "$CI_JOB_NAME-$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
15     paths:
16       - ccache/
17
18 .pull-cache-template:
19   cache:
20     key: "$CI_JOB_NAME-$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
21     # Read but don't update the cache
22     policy: pull
23
24 .no-cache-template:
25   cache: {}
26
27
28 # Tool chains
29 .gcc5-template:
30   image: gromacs/ci-gcc-5:master
31
32 .gcc6-template:
33   image: gromacs/ci-gcc-6:master
34
35 .gcc7-template:
36   image: gromacs/ci-gcc-7:master
37
38 .gcc8-template:
39   image: gromacs/ci-gcc-8:master
40
41 .clang6-template:
42   image: gromacs/ci-clang-6:master
43
44 .clang7-template:
45   image: gromacs/ci-clang-7:master
46
47 .clang8-template:
48   image: gromacs/ci-clang-8:master
49
50 .gcc5-gmxapi-template:
51   image: gromacs/ci-gcc-5-gmxapi:master
52
53 .gcc6-gmxapi-template:
54   image: gromacs/ci-gcc-6-gmxapi:master
55
56 .gcc7-gmxapi-template:
57   image: gromacs/ci-gcc-7-gmxapi:master
58
59 .gcc8-gmxapi-template:
60   image: gromacs/ci-gcc-8-gmxapi:master
61
62 .clang6-gmxapi-template:
63   image: gromacs/ci-clang-6-gmxapi:master
64
65 .clang7-gmxapi-template:
66   image: gromacs/ci-clang-7-gmxapi:master
67
68 .clang8-gmxapi-template:
69   image: gromacs/ci-clang-8-gmxapi:master
70
71 .gcc-8-cuda-10.2-template:
72   image: gromacs/ci-gcc-8-cuda-10.2:master
73   variables:
74     CUDA_BASE_VERSION: "10.2"
75     COMPILER_MAJOR_VERSION: 8
76