forked from MITgcm/MITgcm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (88 loc) · 3.18 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
87
88
89
90
91
# Travis file for running some basic set of testreport checks on each commit
language: python
services:
- docker
before_install:
# Set up environment needed for Sphinx to build docs
- sudo apt-get install texlive-latex-recommended
- sudo apt-get install texlive-latex-extra
- sudo apt-get install texlive-fonts-recommended
- sudo apt-get install latexmk
- pip install sphinx
- pip install sphinx_rtd_theme
- pip install sphinxcontrib-bibtex
# Set up environment needed to run testreport code tests
- docker pull mitgcm/testreport-images:fc11-base-20170715
- docker run -v `pwd`:/MITgcm --name fc11-testreport -t -d mitgcm/testreport-images:fc11-base-20170715 /bin/bash
- docker exec -i fc11-testreport rpm -vv --rebuilddb
- docker exec -i fc11-testreport df -h
- docker exec -i fc11-testreport ls -altr /MITgcm
- docker exec -i fc11-testreport yum install python-pip
- docker exec -i fc11-testreport yum install gcc-gfortran
- docker exec -i fc11-testreport yum install python-argparse
# set options for Travis script
- echo `pwd`
- export MITGCM_TROPT="-devel -of=../tools/build_options/linux_amd64_gfortran"
- export MITGCM_DECMD="docker exec -i fc11-testreport bash -c"
jobs:
include:
# run the tests
- stage: code tests
env:
- MITGCM_EXP="aim.5l_cs" MITGCM_PRECS="14 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="global_ocean.cs32x15" MITGCM_PRECS="16 16 16 16 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="global_ocean.90x40x15" MITGCM_PRECS="16 16 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="hs94.cs-32x32x5" MITGCM_PRECS="13 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="isomip" MITGCM_PRECS="16 16 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="offline_exf_seaice" MITGCM_PRECS="16 16 16 16 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_advection_in_gyre" MITGCM_PRECS="16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_cfc_offline" MITGCM_PRECS="16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_deep_convection" MITGCM_PRECS="16 16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_global_oce_biogeo" MITGCM_PRECS="16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_global_oce_in_p" MITGCM_PRECS="16"
script: . tools/ci/runtr.sh
- env:
- MITGCM_EXP="tutorial_plume_on_slope" MITGCM_PRECS="16"
script: . tools/ci/runtr.sh
# - stage: summary of code tests
# disabled because jobs do not share data
# Generate a summary
# script: docker exec -i fc11-testreport bash -c "cd /MITgcm/verification; ./testreport ${MITGCM_TROPT} -q"
# build documentation
- stage: test documentation
env:
- BUILD="html"
python: "2.7"
script: cd doc; make clean ${BUILD}
- env:
- BUILD="html"
python: "3.6"
script: cd doc; make clean ${BUILD}
- env:
- BUILD="latexpdf"
python: "2.7"
script: cd doc; make clean ${BUILD}
- env:
- BUILD="latexpdf"
python: "3.6"
script: cd doc; make clean ${BUILD}