forked from mom-ocean/MOM5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.42 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
# Travis doesn't have a fortran build config, so we'll use c as a base and
# create our own environment
language: c
sudo: required
dist: xenial
git:
depth: 3
quiet: true
addons:
apt:
update: true
packages:
- pkg-config csh cmake
- gcc gfortran
- libgomp1 openmpi-bin libopenmpi-dev
- libnetcdf-dev libnetcdff-dev netcdf-bin
env:
matrix:
- TYPE=MOM_solo
- TYPE=MOM_SIS
- TYPE=CM2M
- TYPE=ESM2M
- TYPE=ICCM
- TYPE=EBM
- TYPE=ACCESS-OM
- TYPE=ACCESS-CM
- TYPE=ACCESS-OM-BGC
- TYPE=ACCESS-ESM
global:
- FC=gfortran
- OMPI_FC=${FC}
before_script:
- echo $(nf-config --flibs)
- echo $(nf-config --fflags)
- |
if [[ "$TYPE" == "ACCESS-"* ]]; then
export OASIS_ROOT=$TRAVIS_BUILD_DIR/oasis3-mct/Linux
git clone --depth=1 https://github.com/COSIMA/oasis3-mct.git
(cd oasis3-mct && make ubuntu)
fi
- |
if [[ "$TYPE" == "ACCESS-OM" || "$TYPE" == "ACCESS-OM-BGC" ]]; then
export LIBACCESSOM2_ROOT=$TRAVIS_BUILD_DIR/libaccessom2
wget https://github.com/COSIMA/libaccessom2/releases/latest/download/binary_release.tar.gz
tar -zxf binary_release.tar.gz
fi
script:
- env
- cd exp && ./MOM_compile.csh --type $TYPE --platform travis --use_netcdf4
# after_success:
# - find .
# - codecov --gcov-exec=gcov