-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
169 lines (149 loc) · 5.18 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 4.3.{build}
image:
- Visual Studio 2017
- Visual Studio 2019
# branches to build
branches:
# whitelist
only:
- develop
# blacklist
# except:
# - gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
global:
1_8: &1_8 1.8.21
1_10: &1_10 1.10.6
1_12: &1_12 1.12.0
HDF5_1_8_VER: *1_8
HDF5_1_10_VER: *1_10
HDF5_1_12_VER: *1_12
matrix:
- build_opt: -D CGNS_BUILD_SHARED:BOOL=OFF -D CGNS_USE_SHARED:BOOL=OFF -D CGNS_ENABLE_64BIT:BOOL=OFF
HDF5_VER: *1_8
HDF_DIR: "/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake"
- build_opt: -D CGNS_BUILD_SHARED:BOOL=OFF -D CGNS_USE_SHARED:BOOL=OFF -D CGNS_ENABLE_64BIT:BOOL=ON
HDF5_VER: *1_10
HDF_DIR: "/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake"
- build_opt: -D CGNS_BUILD_SHARED:BOOL=ON -D CGNS_USE_SHARED:BOOL=ON -D CGNS_ENABLE_64BIT:BOOL=ON
HDF5_VER: *1_10
HDF_DIR: "/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake"
- build_opt: -D CGNS_BUILD_SHARED:BOOL=OFF -D CGNS_USE_SHARED:BOOL=OFF -D CGNS_ENABLE_64BIT:BOOL=ON
HDF5_VER: *1_12
HDF_DIR: "/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake"
- build_opt: -D CGNS_BUILD_SHARED:BOOL=ON -D CGNS_USE_SHARED:BOOL=ON -D CGNS_ENABLE_64BIT:BOOL=ON
HDF5_VER: *1_12
HDF_DIR: "/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake"
for:
-
matrix:
only:
- image: Visual Studio 2019
environment:
GENERATOR: "Visual Studio 16 2019"
ARCH: "x64"
-
matrix:
only:
- image: Visual Studio 2017
environment:
GENERATOR: "Visual Studio 15 2017"
ARCH: "x64"
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\CGNS
# scripts that run after cloning repository
install:
# by default, all script lines are interpreted as batch
#- echo This is batch
# to run script as a PowerShell command prepend it with ps:
#- ps: Write-Host 'This is PowerShell'
# batch commands start from cmd:
#- cmd: echo This is batch again
#- cmd: set MY_VAR=12345
# install hdf5
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- mkdir 1.8
- cd 1.8
- set HDF5_1_8_VER=%HDF5_1_8_VER%
- curl -O https://gamma.hdfgroup.org/ftp/pub/outgoing/QATEST/hdf518/relbinaries/windows/hdf5-%HDF5_1_8_VER%-Std-win10_64-vs16.zip
- ps: Expand-Archive hdf5-$($env:HDF5_1_8_VER)-Std-win10_64-vs16.zip -DestinationPath .
- cd hdf
- msiexec /i HDF5-%HDF5_1_8_VER%-win64.msi /quiet /qn /norestart /log install.log
- type install.log
- cd ..\..
- mkdir 1.10
- cd 1.10
- set HDF5_1_10=%HDF5_1_10_VER%
- curl -O https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/bin/hdf5-%HDF5_1_10_VER%-Std-win10_64-vs16.zip
- ps: Expand-Archive hdf5-$($env:HDF5_1_10_VER)-Std-win10_64-vs16.zip -DestinationPath .
- cd hdf
- msiexec /i HDF5-%HDF5_1_10_VER%-win64.msi /quiet /qn /norestart /log install.log
- type install.log
- cd ..\..
- mkdir 1.12
- cd 1.12
- set HDF5_1_12=%HDF5_1_12_VER%
- curl -O https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/bin/hdf5-%HDF5_1_12_VER%-Std-win10_64-vs16.zip
- ps: Expand-Archive hdf5-$($env:HDF5_1_12_VER)-Std-win10_64-vs16.zip -DestinationPath .
- cd hdf
- msiexec /i HDF5-%HDF5_1_12_VER%-win64.msi /quiet /qn /norestart /log install.log
- type install.log
- cd ..\..
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# to add several platforms to build matrix:
#platform:
# - x86
# - Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration:
- Release
# scripts to run before build
before_build:
- echo Running cmake...
- mkdir c:\projects\CGNS_BUILD
- cd c:\projects\CGNS_BUILD
- cmake --version
- SET HDF5_DIR=/Program Files/HDF_Group/HDF5/%HDF5_VER%/cmake
- cmake -G "%GENERATOR%" -A "%ARCH%" ^
%build_opt% ^
-D CMAKE_C_FLAGS:STRING="" ^
-D CMAKE_BUILD_TYPE:STRING=Release ^
-D HDF5_NEED_ZLIB:BOOL=ON ^
-D CMAKE_STATIC_LINKER_FLAGS:STRING="" ^
-D CGNS_ENABLE_HDF5:BOOL=ON ^
-D CGNS_ENABLE_TESTS:BOOL=ON ^
-D CGNS_ENABLE_LFS:BOOL=OFF ^
-D CGNS_BUILD_CGNSTOOLS:BOOL=OFF ^
-D CGNS_ENABLE_SCOPING:BOOL=OFF ^
-D CGNS_ENABLE_FORTRAN:BOOL=OFF ^
-D CGNS_ENABLE_PARALLEL:BOOL=OFF ^
-D CMAKE_INSTALL_PREFIX:PATH="." c:\projects\CGNS
build_script:
- cmd: cmake --build . --config "%configuration%"
test_script:
- cmd: set PATH=C:\projects\CGNS_BUILD\src\%configuration%;%PATH%
- cmd: set PATH=C:\Program Files\HDF_Group\HDF5\%HDF5_VER%\bin;%PATH%
- cmd: ctest .
after_test:
- cmd: cmake --install . --config "%configuration%"