forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (43 loc) · 1.63 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
# 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: xenial
# --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
jobs:
include:
- env: JOB="Code style compliance"
script:
- ./.testing/trailer.py -e TEOS10 -l 120 src config_src
- env: JOB="Doxygen"
script:
- 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="Compile and run"
script:
- echo 'Build executables...' && echo -en 'travis_fold:start:script.1\\r'
- TRAVIS_IS_PR=$( [ ${TRAVIS_PULL_REQUEST} = "false" ] || echo "true" )
- cd .testing
- make \
MKMF_TEMPLATE=linux-ubuntu-xenial-gnu.mk \
MOM_TARGET_SLUG=${TRAVIS_REPO_SLUG} \
MOM_TARGET_LOCAL_BRANCH=${TRAVIS_BRANCH} \
DO_REGRESSION_TESTS=${TRAVIS_IS_PR} \
REPORT_COVERAGE=true
- echo -en 'travis_fold:end:script.1\\r'
- echo 'Running tests...' && echo -en 'travis_fold:start:script.2\\r'
- make test \
DO_REGRESSION_TESTS=${TRAVIS_IS_PR} \
REPORT_COVERAGE=true
- echo -en 'travis_fold:end:script.2\\r'