forked from alanxz/rabbitmq-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
42 lines (35 loc) · 1.49 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
# appveyor configuration
version: '{build}'
# Limit history cloned. This matches what travis-CI currently does.
clone_depth: 50
environment:
matrix:
- GENERATOR: Visual Studio 12 Win64
BITS: 64
- GENERATOR: Visual Studio 12
BITS: 32
configuration:
- Debug
- Release
cache:
- c:\deps -> appveyor.yml
# borrowed from https://github.com/FreeTDS/freetds
install:
# xidel (xpath command line tool)
- appveyor DownloadFile "https://downloads.sourceforge.net/project/videlibri/Xidel/Xidel 0.9.6/xidel-0.9.6.win32.zip"
- 7z x xidel-0.9.6.win32.zip xidel.exe
# detect version of Windows OpenSSL binaries published by the Shining Light Productions crew
- xidel https://slproweb.com/products/Win32OpenSSL.html --extract "(//td/a[starts-with(@href, '/download') and starts-with(text(), 'Win32 OpenSSL') and ends-with(text(), 'Light')])[1]/translate(substring-before(substring-after(text(), 'Win32 OpenSSL v'), ' Light'), '.', '_')" > openssl_ver.txt
- set /P OPENSSL_VER=< openssl_ver.txt
# OpenSSL
- appveyor DownloadFile https://slproweb.com/download/Win%BITS%OpenSSL-%OPENSSL_VER%.exe
- "Win%BITS%OpenSSL-%OPENSSL_VER%.exe /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART"
before_build:
- cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DBUILD_TESTS=ON -DENABLE_SSL_SUPPORT=True -G"%GENERATOR%" .
build:
project: ALL_BUILD.vcxproj
verbosity: normal
artifacts:
- path: librabbitmq\%CONFIGURATION%
name: LibRabbit-%BITS%-%OPENSSL_VER%-%CONFIGURATION%.zip
type: zip