mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2025-02-17 18:59:31 +08:00
Updated travis .yml script.
This commit is contained in:
parent
e66a12a5ed
commit
420a0f26ed
35
.travis.yml
35
.travis.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user