mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +00:00
0b3b5f6174
Only tested on Windows so far
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
# 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
|
|
|
|
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
|