forked from HdrHistogram/HdrHistogram_c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
47 lines (39 loc) · 1.33 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
version: 0.9.7.{build}
clone_folder: c:\dev\HdrHistogram_c
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: Visual Studio 15 2017
CFG: Release
VSINSTALL: '"Microsoft Visual Studio"/2017/Community/VC/Auxiliary/Build'
MSVC_PLATFORM: x86
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: Visual Studio 15 2017
CFG: Release
VSINSTALL: '"Microsoft Visual Studio"/2017/Community/VC/Auxiliary/Build'
MSVC_PLATFORM: amd64
install:
- cd c:\dev
- md c:\dev\zlib64
- ps: Start-FileDownload 'http://zlib.net/zlib-1.2.11.tar.gz'
- 7z x zlib-1.2.11.tar.gz
- 7z x zlib-1.2.11.tar
build:
init:
- cmake --version
- msbuild /version
build_script:
- cd c:\dev\zlib-1.2.11
- md build%MSVC_PLATFORM%
- cd build%MSVC_PLATFORM%
- cmake -DCMAKE_INSTALL_PREFIX=c:\dev\zlib%MSVC_PLATFORM% -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CFG% ..
- cmake --build . --target install --config "%CFG%"
- dir c:\dev\zlib%MSVC_PLATFORM%
- cd c:\dev\HdrHistogram_c
- md build%MSVC_PLATFORM%
- cd build%MSVC_PLATFORM%
- cmake -DZLIB_LIBRARY="C:\DEV\zlib%MSVC_PLATFORM%\lib\zlibstatic.lib" -DZLIB_INCLUDE_DIR="C:\DEV\zlib%MSVC_PLATFORM%\include" -G "%GENERATOR%" ..
- cmake --build . --config "%CFG%"
test_script:
- cd c:\dev\HdrHistogram_c\build%MSVC_PLATFORM%
- cmd: ctest