-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62ce6cf
commit 9eccc9e
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#---------------------------------# | ||
# general configuration # | ||
#---------------------------------# | ||
|
||
sudo: false | ||
|
||
branches: | ||
only: | ||
- develop | ||
- master | ||
|
||
language: cpp | ||
|
||
os: osx | ||
osx_image: xcode10.1 | ||
|
||
env: | ||
global: | ||
- MAGICS_SRC=${TRAVIS_BUILD_DIR} | ||
- ECBUILD_SRC=${MAGICS_SRC}/../ecbuild | ||
- BUILD_DIR=${MAGICS_SRC}/build | ||
|
||
git: | ||
depth: 1 | ||
|
||
before_install: | ||
# install conda | ||
- | | ||
MINICONDA_URL="https://repo.continuum.io/miniconda" | ||
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh" | ||
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" | ||
bash $MINICONDA_FILE -b | ||
# activate conda | ||
- source ~/miniconda3/bin/activate | ||
# auto-yes for conda | ||
- conda config --set always_yes yes | ||
|
||
install: | ||
# install ecbuild | ||
- git clone --depth 1 https://github.com/ecmwf/ecbuild.git ${ECBUILD_SRC} | ||
# install pangocairo | ||
- brew install pango | ||
# install conda deps | ||
- conda install boost libnetcdf expat jinja2 | ||
- conda install -c conda-forge proj4 eccodes | ||
|
||
#---------------------------------# | ||
# build configuration # | ||
#---------------------------------# | ||
|
||
script: | ||
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} | ||
- cmake -D ENABLE_FORTRAN=0 ${MAGICS_SRC} | ||
- make -j4 | ||
- ctest -j4 --output-on-failure | ||
- make install --silent |