forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
86 lines (79 loc) · 3.04 KB
/
.travis.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
# This Travis-CI file is for testing the state of the MOM6 source code.
# It does NOT test MOM6 solutions.
# This is a not a c-language project but we use the same environment.
language: c
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tcsh pkg-config netcdf-bin libnetcdf-dev libnetcdff-dev gfortran
- mpich libmpich-dev
- graphviz flex bison cmake
- python-numpy python-netcdf4
- python3 python3-dev python3-venv python3-pip python3-sphinx python3-lxml
- bc
- perl
- texlive-binaries texlive-base bibtool tex-common texlive-bibtex-extra
# Environment variables
env:
global:
- TIMEFORMAT: "\"Time: %lR (user: %lU, sys: %lS)\""
- FCFLAGS_DEBUG: "\"-g -O0 -Wextra -Wno-compare-reals -fbacktrace -ffpe-trap=invalid,zero,overflow -fcheck=bounds\""
- FCFLAGS_REPRO: "\"-g -O2 -fbacktrace\""
- FCFLAGS_INIT: "\"-finit-real=snan -finit-integer=2147483647 -finit-derived\""
- FCFLAGS_COVERAGE: "\"--coverage\""
- DO_REPRO_TESTS: true
jobs:
include:
- env: JOB="Code compliance"
script:
# Whitespace
- ./.testing/trailer.py -e TEOS10 -l 120 src config_src
# API Documentation
- perl -e 'print "perl version $^V" . "\n"'
- cd docs && mkdir _build && make nortd DOXYGEN_RELEASE=Release_1_8_13 UPDATEHTMLEQS=Y
# We can tighten up the warnings here. Math im image captions should only generate
# \f warnings. All other latex math should be double escaped (\\) like (\\Phi) for
# html image captions.
- grep "warning:" _build/doxygen_warn_nortd_log.txt | grep -v 'Illegal command f as part of a \\image' | tee doxy_errors
- test ! -s doxy_errors
- env:
- JOB="x86 verification testing"
- DO_REGRESSION_TESTS=false
script:
- cd .testing
- echo 'Build executables...' && echo -en 'travis_fold:start:script.1\\r'
- time make all
- echo -en 'travis_fold:end:script.1\\r'
- time make -k -s test
- make test.summary
# NOTE: Code coverage upload is here to reduce load imbalance
# We do coverage with the regressions if part of a pull request
# otherwise as a separate job.
- if: type = pull_request
env:
- JOB="x86 Regression testing"
- DO_REGRESSION_TESTS=true
- MOM_TARGET_SLUG=${TRAVIS_REPO_SLUG}
- MOM_TARGET_LOCAL_BRANCH=${TRAVIS_BRANCH}
script:
- cd .testing
- echo 'Build executables...' && echo -en 'travis_fold:start:script.1\\r'
- time make build.regressions
- echo -en 'travis_fold:end:script.1\\r'
- time make -k -s test.regressions
- make test.summary
- arch: arm64
env:
- JOB="ARM64 verification testing"
- DO_REGRESSION_TESTS=false
- DO_REPRO_TESTS=false
script:
- cd .testing
- echo 'Build executables...' && echo -en 'travis_fold:start:script.1\\r'
- time make all
- echo -en 'travis_fold:end:script.1\\r'
- time make -k -s test
- make test.summary