eccodes/.appveyor.yml

111 lines
3.3 KiB
YAML
Raw Normal View History

2019-01-21 13:18:21 +00:00
#---------------------------------#
# general configuration #
#---------------------------------#
version: latest-{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% --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 ^
m2-perl ^
m2w64-ntldd-git
2019-01-21 13:18:21 +00:00
# get deps
2022-08-05 11:15:21 +00:00
- cmd: conda install -c conda-forge cmake 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_NETCDF=1 ^
-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
- cmd: ctest --output-on-failure -R download
- cmd: ctest --output-on-failure -E download -j4
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
# Note: With ENABLE_MEMFS=1, there will be no installed definition files/samples
# - 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
on_build_success: false