2019-01-21 13:18:21 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# general configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
2019-11-27 11:40:29 +00:00
|
|
|
version: 2.16.0-{build}-{branch}
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
- master
|
|
|
|
|
|
|
|
image: Visual Studio 2015
|
|
|
|
|
|
|
|
environment:
|
2019-02-11 15:07:34 +00:00
|
|
|
CONDA: c:\Miniconda37-x64
|
|
|
|
ECMWF: c:\ecmwf
|
|
|
|
GIT_CLONE_DIR: $(ECMWF)\git
|
|
|
|
INSTALL_DIR: $(ECMWF)\install
|
|
|
|
ECCODES_SRC: $(GIT_CLONE_DIR)\eccodes
|
2019-12-11 15:35:13 +00:00
|
|
|
WINDOWS_TESTING_BASHRC: $(ECCODES_SRC)\tests\windows_testing.bashrc
|
2019-02-11 15:07:34 +00:00
|
|
|
ECBUILD_SRC: $(GIT_CLONE_DIR)\ecbuild
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
# scripts that are called at very beginning, before repo cloning
|
|
|
|
init:
|
2019-02-11 15:07:34 +00:00
|
|
|
# make sure git clones symlinks as symlinks
|
|
|
|
- cmd: git config --global core.symlinks true
|
2019-01-21 13:18:21 +00:00
|
|
|
# activate conda environment so the tests can find linux utils
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: call %CONDA%\Scripts\activate.bat
|
2019-01-21 13:18:21 +00:00
|
|
|
# add eccodes\build\bin to path so tests can find eccodes.dll
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: set PATH=%PATH%;%ECCODES_SRC%\build\bin
|
2019-01-21 13:18:21 +00:00
|
|
|
# auto-yes for conda
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: conda config --set always_yes yes
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
clone_folder: $(ECCODES_SRC)
|
|
|
|
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
# scripts that run after cloning repository
|
|
|
|
install:
|
2019-02-11 15:07:34 +00:00
|
|
|
# install ecbuild
|
|
|
|
- cmd: git clone --depth 1 https://github.com/ecmwf/ecbuild.git %ECBUILD_SRC%
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
# install linux utils
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: conda install -c msys2 m2-bash ^
|
|
|
|
m2-findutils ^
|
|
|
|
m2-coreutils ^
|
|
|
|
m2-grep ^
|
|
|
|
m2-sed ^
|
|
|
|
m2-gawk ^
|
|
|
|
m2-diffutils ^
|
|
|
|
m2-perl
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
# get the latest version of cmake
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: conda install -c conda-forge cmake
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
# other deps
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: conda install libnetcdf
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# build configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
platform:
|
2019-02-11 15:07:34 +00:00
|
|
|
- x64
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
before_build:
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
|
|
|
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
build_script:
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: cd %ECCODES_SRC%
|
|
|
|
- cmd: mkdir build && cd build
|
|
|
|
- cmd: cmake -G "NMake Makefiles" ^
|
|
|
|
-D CMAKE_INSTALL_PREFIX=%INSTALL_DIR% ^
|
|
|
|
-D CMAKE_BUILD_TYPE=Release ^
|
|
|
|
-D ENABLE_FORTRAN=0 ^
|
|
|
|
-D ENABLE_PYTHON=0 ^
|
|
|
|
-D ENABLE_NETCDF=1 ^
|
|
|
|
-D ENABLE_JPG=1 ^
|
|
|
|
-D IEEE_LE=1 ^
|
|
|
|
-D ENABLE_MEMFS=0 ^
|
2019-12-11 15:35:13 +00:00
|
|
|
-D ENABLE_EXTRA_TESTS=ON ^
|
|
|
|
-D WINDOWS_TESTING_BASHRC=%WINDOWS_TESTING_BASHRC% ^
|
2019-02-11 15:07:34 +00:00
|
|
|
..
|
|
|
|
- cmd: nmake
|
|
|
|
- cmd: ctest --output-on-failure
|
|
|
|
- cmd: nmake install
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# tests configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
test_script:
|
2019-02-11 15:07:34 +00:00
|
|
|
- cmd: codes_info
|
|
|
|
- cmd: for /F "tokens=* USEBACKQ" %%F IN (`codes_info -s`) DO (ls %%F)
|
|
|
|
- cmd: for /F "tokens=* USEBACKQ" %%F IN (`codes_info -d`) DO (ls %%F)
|