2019-01-21 13:18:21 +00:00
|
|
|
#---------------------------------#
|
|
|
|
# general configuration #
|
|
|
|
#---------------------------------#
|
|
|
|
|
2022-03-09 13:49:01 +00:00
|
|
|
version: latest-{build}-{branch}
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
- master
|
|
|
|
|
2023-10-10 16:49:20 +00:00
|
|
|
image: Visual Studio 2022
|
2019-01-21 13:18:21 +00:00
|
|
|
|
|
|
|
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
|
2020-09-29 14:14:41 +00:00
|
|
|
- cmd: git clone --depth 1 https://github.com/ecmwf/ecbuild.git %ECBUILD_SRC% --branch %APPVEYOR_REPO_BRANCH%
|
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 ^
|
2020-01-07 13:53:01 +00:00
|
|
|
m2-perl ^
|
|
|
|
m2w64-ntldd-git
|
2019-01-21 13:18:21 +00:00
|
|
|
|
2024-07-05 10:11:54 +00:00
|
|
|
# get deps. Drop libnetcdf
|
|
|
|
- cmd: conda install -c conda-forge cmake
|
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:
|
2023-10-10 16:49:20 +00:00
|
|
|
- cmd: call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\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 ^
|
2024-07-05 10:11:54 +00:00
|
|
|
-D ENABLE_NETCDF=0 ^
|
2019-02-11 15:07:34 +00:00
|
|
|
-D ENABLE_JPG=1 ^
|
2022-08-05 11:15:21 +00:00
|
|
|
-D ENABLE_AEC=0 ^
|
2019-02-11 15:07:34 +00:00
|
|
|
-D IEEE_LE=1 ^
|
2021-11-24 12:14:22 +00:00
|
|
|
-D ENABLE_MEMFS=1 ^
|
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
|
2023-02-02 13:05:24 +00:00
|
|
|
- cmd: ctest --output-on-failure
|
2019-02-11 15:07:34 +00:00
|
|
|
- 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
|
2021-11-24 18:56:32 +00:00
|
|
|
# Note: With ENABLE_MEMFS=1, there will be no installed definition files/samples
|
2021-11-24 18:54:20 +00:00
|
|
|
# - 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)
|
2020-02-12 16:17:22 +00:00
|
|
|
|
|
|
|
#---------------------------------#
|
|
|
|
# notifications #
|
|
|
|
#---------------------------------#
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
|
|
|
|
# Email
|
|
|
|
- provider: Email
|
|
|
|
to:
|
|
|
|
- shahram.najm@ecmwf.int
|
|
|
|
subject: 'Build {{status}}' # optional
|
|
|
|
message: "{{message}}, {{commitId}}, ..." # optional
|
2020-02-19 13:19:36 +00:00
|
|
|
on_build_success: false
|