forked from NOAA-GFDL/GRTCODE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
78 lines (68 loc) · 1.61 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
build:gfdl-ws:
stage: build
tags:
- gfdl-ws
script:
- autoreconf --install
- ./configure --prefix /home/fms/opt/gfdl-grtcode CFLAGS="-g -O2 -Wall -Wextra -pedantic -std=c99 -fopenmp" CPPFLAGS="-I/home/Raymond.Menzel/local/include" LDFLAGS="-fopenmp -L/home/Raymond.Menzel/local/lib"
- make
artifacts:
untracked: true
expire_in: 1 days
test:gfdl-ws:
stage: test
tags:
- gfdl-ws
variables:
LD_LIBRARY_PATH: /home/Raymond.Menzel/local/lib
script:
- make check
dependencies:
- build:gfdl-ws
deploy:gfdl-ws:
stage: deploy
environment: gfdl-ws
only:
- master
tags:
- gfdl-ws_deploy
script:
- make install
dependencies:
- build:gfdl-ws
build:lscsky50-d:
stage: build
tags:
- skylake
script:
- source /opt/lmod/lmod/init/bash
- module load intel/2019_up2
- autoreconf --install
- ./configure --prefix /opt/gfdl-grtcode CC="icc" CFLAGS="-g -O2 -qopenmp" CPPFLAGS="-I/opt/hdf5/1.10.1/INTEL/include -I/opt/netcdf/4.6.1/INTEL/include" LDFLAGS="-qopenmp -L/opt/hdf5/1.10.1/INTEL/lib -L/opt/netcdf/4.6.1/INTEL/lib64" CXX="icc"
- make
artifacts:
untracked: true
expire_in: 1 days
test:lscsky50-d:
stage: test
tags:
- skylake
script:
- source /opt/lmod/lmod/init/bash
- module load intel/2019_up2 netcdf/4.6.1
- make check
dependencies:
- build:lscsky50-d
deploy:lscsky50-d:
stage: deploy
environment: skylake
only:
- master
tags:
- skylake
script:
- source /opt/lmod/lmod/init/bash
- module load intel/2019_up2
- make install
dependencies:
- build:lscsky50-d