eccodes/.travis.yml

75 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2019-02-11 12:28:34 +00:00
#---------------------------------#
# general configuration #
#---------------------------------#
sudo: false
branches:
only:
- develop
- master
language: c
2019-02-13 15:45:22 +00:00
matrix:
include:
- os: linux
dist: xenial
addons:
apt:
packages:
- libnetcdf-dev
- os: osx
osx_image: xcode10.2
2019-02-13 15:45:22 +00:00
addons:
homebrew:
packages:
- netcdf
2019-02-11 12:28:34 +00:00
env:
global:
- ECCODES_SRC=${TRAVIS_BUILD_DIR}
- ECBUILD_SRC=${ECCODES_SRC}/../ecbuild
- BUILD_DIR=${ECCODES_SRC}/build
2019-02-13 16:08:41 +00:00
- INSTALL_DIR=/tmp/install
2019-02-11 12:28:34 +00:00
git:
depth: 1
2019-02-13 16:08:41 +00:00
before_install:
- mkdir ${INSTALL_DIR}
2019-02-13 16:31:53 +00:00
- export PATH=${PATH}:${INSTALL_DIR}/bin
2019-02-13 16:08:41 +00:00
2019-02-11 12:28:34 +00:00
install:
# install ecbuild
- git clone --depth 1 https://github.com/ecmwf/ecbuild.git ${ECBUILD_SRC} --branch ${TRAVIS_BRANCH}
2019-02-11 12:28:34 +00:00
#---------------------------------#
# build configuration #
#---------------------------------#
script:
# env vars
- echo ${ECCODES_SRC}
- echo ${ECBUILD_SRC}
- echo ${BUILD_DIR}
# build ecCodes
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
2019-02-13 16:08:41 +00:00
- cmake -D CMAKE_INSTALL_PREFIX=${INSTALL_DIR}
-D ENABLE_FORTRAN=0
2019-02-11 12:28:34 +00:00
-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
2019-02-13 16:14:23 +00:00
- make install > /dev/null
2019-02-11 12:28:34 +00:00
# extra sanity tests
- codes_info
- ls $(codes_info -s)
- ls $(codes_info -d)