forked from NOAA-GFDL/MOM6-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
22 lines (22 loc) · 1.09 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
parameter_files:
tags:
- ncrc3
- ncrc4
script:
# Install / update testing scripts
- git clone https://github.com/adcroft/MRS.git build_MRS
# Recursively clone submodules
- git submodule sync --recursive && git submodule update --init --recursive
# Clone other components
- test -d src/LM3 || make -f build_MRS/Makefile.clone CONFIGS=. clone_gfdl -s
# Create manifest of experiments to run
- git clone http://gitlab.gfdl.noaa.gov/ogrp/Gaea-stats-MOM6-examples.git tests && mv tests/regressions . && rm -rf tests
- bash build_MRS/generate_manifest.sh . > manifest.mk && rm -rf regressions
# Build executables
- time make -f build_MRS/Makefile.build build_gnu CONFIGS=. -s -j
# Run standard tests
- (echo '#!/bin/tcsh';echo 'make -f build_MRS/Makefile.run gnu_all MEMORY=dynamic_symmetric CONFIGS=. -s -j') > job.sh
- sbatch --clusters=c3,c4 --nodes=25 --time=0:08:00 --account=gfdl_o --qos=debug --job-name=mom6_examples_tests --output=log.$CI_PIPELINE_ID --wait job.sh
# Check status of doc files
- git status
- git diff --exit-code