mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
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:
parent
1df444db6c
commit
3d55eafb2e
26
.travis.yml
26
.travis.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user