forked from NOAA-GFDL/atmos_phys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
43 lines (39 loc) · 1.03 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
before_script:
- hostname
.ncrc_build: &ncrc_build
script:
- source /opt/cray/pe/modules/default/init/bash
- module rm cray-netcdf cray-hdf5 PrgEnv-intel PrgEnv-pgi PrgEnv-gnu PrgEnv-cray
- module load PrgEnv-${COMPILER_FAMILY}
- module swap ${COMPILER_NAME} ${COMPILER_NAME}/${COMPILER_VERSION}
- module load cray-hdf5 cray-netcdf
- mkdir local
- git clone https://github.com/NOAA-GFDL/FMS.git FMS
- cd FMS
- autoreconf --install
- ./configure --prefix=${CI_BUILDS_DIR}/local
- make
- make install
- cd ..
- autoreconf --install
- ./configure
- make
build:ncrc:intel19:debug:
stage: build
tags:
- ncrc
variables:
CC: cc
COMPILER_FAMILY: intel
COMPILER_NAME: intel
COMPILER_VERSION: 19.0.5.281
FC: ftn
F77: ftn
FCFLAGS: "-I${CI_BUILDS_DIR}/local/include -O0"
FFLAGS: "-I${CI_BUILDS_DIR}/local/include -O0"
LDFLAGS: "-L${CI_BUILDS_DIR}/local/lib"
<<: *ncrc_build
artifacts:
paths:
- .libs/libatmos_phys.so
- ./*.mod