mirror of https://github.com/ecmwf/eccodes.git
commit
487cae8397
30
.travis.yml
30
.travis.yml
|
@ -11,25 +11,40 @@ branches:
|
|||
|
||||
language: c
|
||||
|
||||
os: osx
|
||||
osx_image: xcode10.1
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
dist: xenial
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libnetcdf-dev
|
||||
|
||||
- os: osx
|
||||
osx_image: xcode10.1
|
||||
addons:
|
||||
homebrew:
|
||||
packages:
|
||||
- netcdf
|
||||
|
||||
env:
|
||||
global:
|
||||
- ECCODES_SRC=${TRAVIS_BUILD_DIR}
|
||||
- ECBUILD_SRC=${ECCODES_SRC}/../ecbuild
|
||||
- BUILD_DIR=${ECCODES_SRC}/build
|
||||
- INSTALL_DIR=/tmp/install
|
||||
|
||||
git:
|
||||
depth: 1
|
||||
|
||||
before_install:
|
||||
- mkdir ${INSTALL_DIR}
|
||||
- export PATH=${PATH}:${INSTALL_DIR}/bin
|
||||
|
||||
install:
|
||||
# install ecbuild
|
||||
- git clone --depth 1 https://github.com/ecmwf/ecbuild.git ${ECBUILD_SRC}
|
||||
|
||||
# install netcdf
|
||||
- brew install netcdf
|
||||
|
||||
#---------------------------------#
|
||||
# build configuration #
|
||||
#---------------------------------#
|
||||
|
@ -42,7 +57,8 @@ script:
|
|||
|
||||
# build ecCodes
|
||||
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
|
||||
- cmake -D ENABLE_FORTRAN=0
|
||||
- cmake -D CMAKE_INSTALL_PREFIX=${INSTALL_DIR}
|
||||
-D ENABLE_FORTRAN=0
|
||||
-D ENABLE_PYTHON=0
|
||||
-D ENABLE_NETCDF=1
|
||||
-D ENABLE_JPG=1
|
||||
|
@ -51,7 +67,7 @@ script:
|
|||
${ECCODES_SRC}
|
||||
- make -j4
|
||||
- ctest -j4 --output-on-failure
|
||||
- make install --silent
|
||||
- make install > /dev/null
|
||||
|
||||
# extra sanity tests
|
||||
- codes_info
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
ecCodes
|
||||
=======
|
||||
|
||||
[![macOS: master](https://img.shields.io/travis/ecmwf/eccodes/master.svg?label=macOS-master)](https://travis-ci.org/ecmwf/eccodes/branches)
|
||||
[![macOS: develop](https://img.shields.io/travis/ecmwf/eccodes/develop.svg?label=macOS-dev)](https://travis-ci.org/ecmwf/eccodes/branches)
|
||||
[![Linux & macOS: master](https://img.shields.io/travis/ecmwf/eccodes/master.svg?label=Linux-and-macOS-master)](https://travis-ci.org/ecmwf/eccodes/branches)
|
||||
[![Linux & macOS: develop](https://img.shields.io/travis/ecmwf/eccodes/develop.svg?label=Linux-and-macOS-dev)](https://travis-ci.org/ecmwf/eccodes/branches)
|
||||
[![Windows: master](https://img.shields.io/appveyor/ci/ecmwf/eccodes/master.svg?label=Windows-master)](https://ci.appveyor.com/project/ecmwf/eccodes/branch/master)
|
||||
[![Windows: develop](https://img.shields.io/appveyor/ci/ecmwf/eccodes/develop.svg?label=Windows-dev)](https://ci.appveyor.com/project/ecmwf/eccodes/branch/develop)
|
||||
|
||||
|
|
Loading…
Reference in New Issue