-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
83 lines (68 loc) · 2.2 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
#---------------------------------#
# general configuration #
#---------------------------------#
version: 2.13.1-{build}
branches:
only:
- master
image: Visual Studio 2017
environment:
CONDA: c:\Miniconda37-x64
INSTALL_DIR: c:\ECMWF
SOURCE_DIRECTORY: eccodes-2.13.1-Source
SOURCE_TAR: https://confluence.ecmwf.int/download/attachments/45757960/eccodes-2.13.1-Source.tar.gz?api=v2
# scripts that are called at very beginning, before repo cloning
init:
- cmd: git config --global core.symlinks true
- cmd: call %CONDA%\Scripts\activate.bat
- cmd: conda config --set always_yes yes
clone_depth: 1
# scripts that run after cloning repository
install:
- cmd: curl -o sources.tar.gz %SOURCE_TAR%
- cmd: 7z x -tgzip -so sources.tar.gz | 7z x -si -ttar
# install linux utils from msys
- cmd: conda install -c msys2 m2-bash ^
m2-findutils ^
m2-coreutils ^
m2-grep ^
m2-sed ^
m2-gawk ^
m2-diffutils ^
m2-perl
# get the latest version of cmake
- cmd: conda install -c conda-forge cmake
# other deps
- cmd: conda install libpng openjpeg
before_build:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
build_script:
- cmd: cd %SOURCE_DIRECTORY%
- 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=0 ^
-D ENABLE_PNG=1 ^
-D ENABLE_JPG=1 ^
-D OPENJPEG_INCLUDE_DIR=%CONDA%\Library\include\openjpeg-2.3 ^
-D IEEE_LE=1 ^
-D ENABLE_EXAMPLES=0 ^
-D ENABLE_MEMFS=0 ^
-D ENABLE_TESTS=0 ^
-D ENABLE_EXTRA_TESTS=OFF ^
..
- cmd: nmake install
- cmd: copy "%CONDA%\Library\bin\openjp2.dll" "%INSTALL_DIR%\bin\"
- cmd: copy "%CONDA%\Library\bin\libpng16.dll" "%INSTALL_DIR%\bin\"
- cmd: copy "%CONDA%\Library\bin\zlib.dll" "%INSTALL_DIR%\bin\"
test_script:
- cmd: call "%INSTALL_DIR%\bin\codes_info.exe"
after_test:
- cmd: cd c:\
- cmd: 7z a "%APPVEYOR_BUILD_FOLDER%\EcCodes-win-x64.zip" "%INSTALL_DIR%"
artifacts:
- path: EcCodes-win-x64.zip