Updated travis .yml script.

This commit is contained in:
Ward Fisher 2015-06-05 14:55:51 -06:00
parent e66a12a5ed
commit 420a0f26ed

View File

@ -1,31 +1,36 @@
language: c
compiler:
- gcc
- clang
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq libcurl4-openssl-dev m4 wget autoconf libtool gfortran git
- sudo apt-get install -y -qq libcurl4-openssl-dev m4 wget autoconf libtool clang libjpeg8-dev
# We need to install hdf5.
# hdf5-1.8.14.tar.bz2
- wget http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.14/src/hdf5-1.8.14.tar.bz2
- tar -jxf hdf5-1.8.14.tar.bz2
- cd hdf5-1.8.14 && ./configure --enable-shared --disable-static --disable-fortran --enable-hl --disable-fortran --prefix=/usr && make -j 4 && sudo make install
- cd ..
###
# Install dependencies from a pre-built binary.
###
- cd /
- sudo wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/travisdeps.tar.bz2
- sudo tar -jxf travisdeps.tar.bz2
- cd -
# Now we need to install libnetcdf
- git clone http://www.github.com/Unidata/netcdf-c
# Install netcdf-c
- git clone http://github.com/Unidata/netcdf-c
- cd netcdf-c
- autoreconf -if
- ./configure --prefix=/usr --disable-static --enable-shared
- mkdir build
- cd build
- cmake .. -DENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr
- make -j 4
- sudo make install
- cd ..
- cd
before_script:
- autoreconf -if
- ./configure
- mkdir build
- cd build
- cmake ..
script:
- make -j 4
- make check
- make test