forked from BeTR-biogeochemistry-modeling/sbetr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (39 loc) · 1.25 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
language:
before_script:
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
sudo: required
dist: trusty # Ubuntu 14.04.
compiler:
- gcc
install: sh ./.travis/install-$TRAVIS_OS_NAME-deps.sh
addons:
apt:
# Travis whitelist of packages.
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-trusty
# NOTE(bja, 201604) default gcc is too old.
packages:
- cmake
matrix:
include:
# linux + gcc-5 + DEBUG=0
- env: DEBUG=0; CC=gcc-5; export CXX=g++-5; export FC=gfortran-5
os: linux
# linux + gcc-5 + DEBUG=1
- env: DEBUG=1; CC=gcc-5; export CXX=g++-5; export FC=gfortran-5
os: linux
# osx + gcc + DEBUG=0
- env: DEBUG=0; CC=gcc; export CXX=g++; export FC=gfortran
os: osx
# osx + gcc + DEBUG=1
- env: DEBUG=1; CC=gcc; export CXX=g++; export FC=gfortran
os: osx
script:
- echo CC=${CC}
- echo CXX=${CXX}
- echo FC=${FC}
- make travis=1 debug=$DEBUG CC=${CC} CXX=${CXX} FC=${FC} config
- make travis=1 debug=$DEBUG CC=${CC} CXX=${CXX} FC=${FC} all
- make travis=1 debug=$DEBUG CC=${CC} CXX=${CXX} FC=${FC} install
- make travis=1 debug=$DEBUG CC=${CC} CXX=${CXX} FC=${FC} test
- cd regression-tests; make rtest
- cat betr-tests.testlog