simplify travis config

Simplification is achieved in great parts by relying on nschloe/netcdf-nightly
for providing the netCDF build. This avoids rebuilding netCDF-C for every
commit on netCDF-C++.
This commit is contained in:
Nico Schlömer 2015-06-17 14:00:48 +02:00
parent 1df444db6c
commit 3d55eafb2e

View File

@ -4,34 +4,16 @@ compiler:
- clang
before_install:
- sudo add-apt-repository -y ppa:nschloe/netcdf-nightly
- sudo apt-get update -qq
- sudo apt-get install -y -qq libcurl4-openssl-dev m4 wget autoconf libtool clang libjpeg8-dev
- sudo apt-get install libnetcdf-dev
###
# 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 -
# Install netcdf-c
- git clone http://github.com/Unidata/netcdf-c
- cd netcdf-c
- mkdir build
- cd build
- cmake .. -DENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr
- make -j 4
- sudo make install
- cd ..
- cd ..
before_script:
install:
- mkdir build
- cd build
- cmake ..
- make
script:
- make -j 4
- make test