forked from alperaltuntas/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 1.89 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
# 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
# --depth flag is breaking our merge, try disabling it
# NOTE: We may be able to go back to depth=50 in production
git:
depth: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tcsh pkg-config netcdf-bin libnetcdf-dev libnetcdff-dev openmpi-bin libopenmpi-dev gfortran
- doxygen graphviz flex bison cmake
- python-numpy python-netcdf4
jobs:
include:
- env: JOB="Code compliance"
script:
# Whitespace
- ./.testing/trailer.py -e TEOS10 -l 120 src config_src
# API Documentation
- cd docs && doxygen Doxyfile_nortd
- grep -v "config_src/solo_driver/coupler_types.F90" doxygen.log | tee doxy_errors
- test ! -s doxy_errors
- env:
- JOB="Configuration testing"
- DO_REGRESSION_TESTS=false
- MKMF_TEMPLATE=linux-ubuntu-xenial-gnu.mk
script:
- cd .testing
- echo 'Build executables...' && echo -en 'travis_fold:start:script.1\\r'
- make all
- echo -en 'travis_fold:end:script.1\\r'
- make -k -s test
- make test.summary
# NOTE: Code coverage upload is here to reduce load imbalance
- if: type = pull_request
env:
- JOB="Regression testing"
- DO_REGRESSION_TESTS=true
- REPORT_COVERAGE=true
- MKMF_TEMPLATE=linux-ubuntu-xenial-gnu.mk
- 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'
- make build.regressions
- echo -en 'travis_fold:end:script.1\\r'
- make -k -s test.regressions
- make test.summary