forked from NOAA-GFDL/FMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 981 Bytes
/
.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
# This Travis-CI file for testing the build, and eventually the
# functionality of the libfms library.
#
# This Travis-CI file was created based off the NOAA-GFDL/MOM6
# Travis-CI file.
# FMS is not a c-language project, although there are a few c-language
# sources. However, this is the best choice.
language: c
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- pkg-config netcdf-bin libnetcdf-dev libnetcdff-dev openmpi-bin libopenmpi-dev gfortran
# Travis sets CC to gcc, but we need to ensure it is not set, so we can use mpicc
before_install:
- test -n "$CC" && unset CC
before_script:
- export CC=mpicc
- export FC=mpif90
- export CPPFLAGS='-I/usr/include -Duse_LARGEFILE -DMAXFIELDMETHODS_=500'
- export FCFLAGS='-fcray-pointer -fdefault-double-8 -fdefault-real-8 -Waliasing -ffree-line-length-none -fno-range-check'
- export LDFLAGS='-L/usr/lib'
script:
- autoreconf -i
- ./configure
- make -j distcheck