-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
108 lines (98 loc) · 2.23 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
before_script:
- hostname
.testScript: &testScript
script:
- source ${MODULESHOME}/init/bash
- module use ${FMS_HOME}/local/modulefiles
- if [ "X$(module avail slurm 2>&1)" != "X" ]; then module load slurm; fi
- module load fre/test
- if [[ -n $(module avail bats 2>&1) ]]; then module load bats; fi
- module list
- cd t/FRE_tests
- ./run_tests
.deployScript: &deployScript
only:
- master
script:
- ${CI_PROJECT_DIR}/t/FRE_tests/run_tests
ncrc3:
tags:
- ncrc3
variables:
FRE_COMMANDS_TEST: ${CI_PROJECT_DIR}
FMS_HOME: /ncrc/home2/fms
script:
- source ${MODULESHOME}/init/bash
- module use ${FMS_HOME}/local/modulefiles
- module load fre/test
- module list
- cd t/FRE_tests
- ./run_tests
ncrc4:
tags:
- ncrc4
variables:
FRE_COMMANDS_TEST: ${CI_PROJECT_DIR}
FMS_HOME: /ncrc/home2/fms
script:
- source ${MODULESHOME}/init/bash
- module use ${FMS_HOME}/local/modulefiles
- module load fre/test
- module list
- cd t/FRE_tests
- ./run_tests
.theia:
tags:
- theia
variables:
FRE_COMMANDS_TEST: ${CI_PROJECT_DIR}
PROJECT_DIR: /scratch4/GFDL/gfdlscr
MODULESHOME: /apps/lmod/lmod
FMS_HOME: /home/fms
#<<: *testScript
script:
- echo skipping theia until modules are fixed
gfdl-ws:
tags:
- gfdl-ws
variables:
FRE_COMMANDS_TEST: ${CI_PROJECT_DIR}
MODULESHOME: /usr/local/Modules/default
FMS_HOME: /home/fms
allow_failure: true
<<: *testScript
gfdl:
tags:
- gfdl
variables:
FRE_COMMANDS_TEST: ${CI_PROJECT_DIR}
MODULESHOME: /usr/local/Modules/default
FMS_HOME: /home/fms
<<: *testScript
stage:ncrc:
stage: deploy
environment:
name: stage_ncrc
tags:
- ncrc_deploy
variables:
FRE_COMMANDS_DIR: /ncrc/home2/fms/local/opt/fre-commands/test
<<: *deployScript
.stage:theia:
stage: deploy
environment:
name: stage_theia
tags:
- theia_deploy
variables:
FRE_COMMANDS_DIR: /home/fms/local/opt/fre-commands/test
<<: *deployScript
stage:gfdl:
stage: deploy
environment:
name: stage_gfdl
tags:
- gfdl-ws_deploy
variables:
FRE_COMMANDS_DIR: /home/fms/local/opt/fre-commands/test
<<: *deployScript