2015-10-15 00:43:35 +08:00
|
|
|
sudo: false
|
2015-02-12 05:07:33 +08:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-02-24 03:42:49 +08:00
|
|
|
- clang
|
2015-02-12 05:07:33 +08:00
|
|
|
|
2015-10-15 00:43:35 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- m4
|
|
|
|
- wget
|
|
|
|
- autoconf
|
|
|
|
- libtool
|
|
|
|
- gfortran
|
|
|
|
- git
|
|
|
|
|
2015-02-12 05:07:33 +08:00
|
|
|
before_install:
|
2015-10-15 00:43:35 +08:00
|
|
|
|
|
|
|
before_script:
|
2015-02-12 05:07:33 +08:00
|
|
|
|
2015-05-28 05:17:59 +08:00
|
|
|
###
|
|
|
|
# Install dependencies from a pre-built binary.
|
|
|
|
###
|
2015-10-15 00:43:35 +08:00
|
|
|
- cd $HOME
|
|
|
|
- wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/travisdeps.tar.bz2
|
|
|
|
|
|
|
|
- tar -jxf travisdeps.tar.bz2
|
|
|
|
- export LD_LIBRARY_PATH=$HOME/usr/lib
|
|
|
|
- export PATH=$HOME/usr/bin:$PATH
|
2015-05-28 05:17:59 +08:00
|
|
|
- cd -
|
2015-04-25 00:20:38 +08:00
|
|
|
|
2015-05-28 05:17:59 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2015-10-15 00:43:35 +08:00
|
|
|
- cmake .. -DENABLE_EXTRA_TESTS=ON -DENABLE_HDF4=ON -DCMAKE_PREFIX_PATH=$HOME/usr
|
2015-04-25 01:28:16 +08:00
|
|
|
|
2015-02-12 05:07:33 +08:00
|
|
|
script:
|
2015-04-25 00:20:38 +08:00
|
|
|
- make -j 4
|
2015-05-28 05:17:59 +08:00
|
|
|
- make test
|