Merge with changes on GitHub

This commit is contained in:
Shahram Najm 2019-02-11 15:07:34 +00:00
parent 444f1aef5d
commit 350e67043e
3 changed files with 111 additions and 50 deletions

View File

@ -53,7 +53,7 @@ install:
- cmd: conda install -c conda-forge cmake
# other deps
- cmd: conda install netcdf4
- cmd: conda install libnetcdf
#---------------------------------#
# build configuration #
@ -81,7 +81,7 @@ build_script:
-D ENABLE_EXTRA_TESTS=OFF ^
..
- cmd: nmake
- cmd: ctest
- cmd: ctest --output-on-failure
- cmd: nmake install
#---------------------------------#

59
.travis.yml Normal file
View File

@ -0,0 +1,59 @@
#---------------------------------#
# general configuration #
#---------------------------------#
sudo: false
branches:
only:
- develop
- master
language: c
os: osx
osx_image: xcode10.1
env:
global:
- ECCODES_SRC=${TRAVIS_BUILD_DIR}
- ECBUILD_SRC=${ECCODES_SRC}/../ecbuild
- BUILD_DIR=${ECCODES_SRC}/build
git:
depth: 1
install:
# install ecbuild
- git clone --depth 1 https://github.com/ecmwf/ecbuild.git ${ECBUILD_SRC}
# install netcdf
- brew install netcdf
#---------------------------------#
# build configuration #
#---------------------------------#
script:
# env vars
- echo ${ECCODES_SRC}
- echo ${ECBUILD_SRC}
- echo ${BUILD_DIR}
# build ecCodes
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- cmake -D ENABLE_FORTRAN=0
-D ENABLE_PYTHON=0
-D ENABLE_NETCDF=1
-D ENABLE_JPG=1
-D ENABLE_MEMFS=0
-D ENABLE_EXTRA_TESTS=ON
${ECCODES_SRC}
- make -j4
- ctest -j4 --output-on-failure
- make install --silent
# extra sanity tests
- codes_info
- ls $(codes_info -s)
- ls $(codes_info -d)

View File

@ -1,8 +1,10 @@
ecCodes
=======
[![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)
[![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)
[![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)
ecCodes is a package developed by ECMWF which provides an application programming interface
and a set of tools for decoding and encoding messages in the following formats:
@ -19,12 +21,12 @@ It is designed to provide the user with a simple set of functions to access data
several formats with a key/value approach.
Documentation can be found here:
https://confluence.ecmwf.int/display/ECC/ecCodes+Home
https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home
INSTALLATION
------------
1. Download ecCodes from https://confluence.ecmwf.int/display/ECC/Releases
1. Download ecCodes from https://software.ecmwf.int/wiki/display/ECC/Releases
2. Unpack distribution:
> tar -xzf eccodes-x.y.z-Source.tar.gz
@ -45,7 +47,7 @@ INSTALLATION
For more details, please see:
https://confluence.ecmwf.int/display/ECC/ecCodes+installation
https://software.ecmwf.int/wiki/display/ECC/ecCodes+installation
If you encounter any problems please send an e-mail with your problem to: