Skip to content

Commit

Permalink
now build netcdf-4 from source in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 14, 2019
1 parent 11c1e92 commit 67f44d9
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ addons:
sources:
- ubuntu-toolchain-r-test
packages:
- pkg-config netcdf-bin libnetcdf-dev openmpi-bin libopenmpi-dev gfortran
- pkg-config openmpi-bin libopenmpi-dev gfortran zlib1g-dev

before_install:
- test -n $CC && unset CC
Expand All @@ -23,12 +23,25 @@ before_script:
- export CC=mpicc
- export FC=mpif90
- export CPPFLAGS='-I/usr/include'
- wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.gz
- tar -xzvf hdf5-1.10.5.tar.gz
- pushd hdf5-1.10.5
- ./configure --prefix=/usr --enable-parallel
- make
- sudo make install
- popd
- wget https://github.com/Unidata/netcdf-c/archive/v4.6.3.tar.gz
- tar -xzvf v4.6.3.tar.gz
- pushd netcdf-c-4.6.3
- ./configure --prefix=/usr
- make
- sudo make install
- popd
- wget https://parallel-netcdf.github.io/Release/pnetcdf-1.11.0.tar.gz
- tar -xzvf pnetcdf-1.11.0.tar.gz
- ls -l
- pushd pnetcdf-1.11.0
- ./configure --prefix=/usr --enable-shared
- make
- make
- sudo make install
- popd
env:
Expand Down

0 comments on commit 67f44d9

Please sign in to comment.