forked from parflow/parflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (48 loc) · 2.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
env:
matrix:
- PF_BUILD=cmake
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
os:
- linux
addons:
sources:
- ubuntu-toolchain-r-test
apt:
packages:
- cmake
before_install:
- echo $LANG
- echo $LC_ALL
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- sudo apt-get -qq update
- sudo apt-get install -y gfortran
- sudo apt-get install -y libhypre-2.8.0b libhypre-dev
- sudo apt-get install -y libsilo-bin libsilo-dev
- sudo apt-get install -y libhdf5-openmpi-dev libhdf5-openmpi-7 hdf5-helpers
- sudo apt-get install -y tcl-dev tk-dev
- sudo apt-get install -y openmpi-bin openmpi-doc libopenmpi-dev
- "[[ $PF_BUILD != 'cmake' ]] || if [[ ! -f cmake-3.9.0-Linux-x86_64/bin/cmake ]]; then wget --no-check-certificate http://cmake.org/files/v3.9/cmake-3.9.0-Linux-x86_64.tar.gz && tar -xvf cmake-3.9.0-Linux-x86_64.tar.gz; fi"
before_script:
- cd $TRAVIS_BUILD_DIR
- export PARFLOW_SRC_DIR=$TRAVIS_BUILD_DIR
- export PARFLOW_DIR=$TRAVIS_BUILD_DIR/install
- mkdir -p $PARFLOW_DIR
- export CC=mpicc
- export CXX=mpiCC
- export F77=mpif77
- export FC=mpif90
- echo "PF_BUILD = $PF_BUILD"
- "[[ $PF_BUILD != 'cmake' ]] || (mkdir -p build && cd build && ../cmake-3.9.0-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Release -DPARFLOW_AMPS_LAYER=mpi1 -DPARFLOW_AMPS_SEQUENTIAL_IO=true -DPARFLOW_ENABLE_TIMING=TRUE -DPARFLOW_HAVE_CLM=ON -DPARFLOW_ENABLE_HYPRE=true -DPARFLOW_ENABLE_HDF5=true -DPARFLOW_ENABLE_SILO=true -DCMAKE_INSTALL_PREFIX=$PARFLOW_DIR .. )"
- "[[ $PF_BUILD != 'cmake' ]] || (cd build && make && make install)"
- "[[ $PF_BUILD != 'autoconf' ]] || (mkdir -p build.pfsimulator && cd build.pfsimulator && ../pfsimulator/configure --prefix=$PARFLOW_DIR --with-amps=mpi1 --with-hypre --with-silo --with-clm)"
- "[[ $PF_BUILD != 'autoconf' ]] || (mkdir -p build.pftools && cd build.pftools && ../pftools/configure --prefix=$PARFLOW_DIR --with-amps=mpi1 --with-silo)"
- "[[ $PF_BUILD != 'autoconf' ]] || (cd build.pfsimulator && make)"
- "[[ $PF_BUILD != 'autoconf' ]] || (cd build.pftools && make)"
script:
- "[[ $PF_BUILD != 'cmake' ]] || (cd build && make test)"
- "[[ $PF_BUILD != 'autoconf' ]] || (cd test && make)"