Merge pull request #11 from ecmwf/dtip-linux-ci

Linux: add CI build
This commit is contained in:
shahramn 2019-02-19 09:49:18 +00:00 committed by GitHub
commit 487cae8397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 9 deletions

View File

@ -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

View File

@ -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)