2015-10-23 01:32:00 +02:00
|
|
|
version: build-{build}
|
|
|
|
|
2018-02-13 10:42:02 +01:00
|
|
|
shallow_clone: true
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
skip_tags: true
|
|
|
|
|
2018-04-30 16:04:53 +01:00
|
|
|
os: Visual Studio 2013
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
environment:
|
2018-04-30 16:04:53 +01:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 12 2013"
|
|
|
|
MSVCVERSION: "v120"
|
|
|
|
MSVCYEAR: "vs2013"
|
2015-10-23 16:13:53 +02:00
|
|
|
matrix:
|
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2018-02-13 10:40:54 +01:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
POLLER: poll
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: Win32
|
2015-10-25 01:12:31 +02:00
|
|
|
configuration: Debug
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: x64
|
2015-10-25 01:12:31 +02:00
|
|
|
configuration: Release
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: x64
|
|
|
|
configuration: Debug
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: OFF
|
|
|
|
ENABLE_CURVE: OFF
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: OFF
|
|
|
|
ENABLE_CURVE: ON
|
2017-11-22 13:31:43 +00:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2018-04-30 16:04:53 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 14 2015"
|
|
|
|
MSVCVERSION: "v140"
|
|
|
|
MSVCYEAR: "vs2015"
|
2017-11-22 13:31:43 +00:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
|
|
|
MSVCVERSION: "v141"
|
|
|
|
MSVCYEAR: "vs2017"
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: false
|
|
|
|
|
|
|
|
init:
|
|
|
|
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
- cmake --version
|
|
|
|
- msbuild /version
|
|
|
|
- cmd: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
|
|
|
|
|
2018-04-25 21:17:32 +01:00
|
|
|
cache:
|
|
|
|
- C:\projects\libsodium
|
|
|
|
|
2015-10-23 01:32:00 +02:00
|
|
|
install:
|
|
|
|
- cmd: if "%Platform%"=="x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64"
|
|
|
|
- cmd: echo "Generator='%CMAKE_GENERATOR%'"
|
|
|
|
- cmd: echo "Platform='%Platform%'"
|
2017-11-22 18:59:29 +00:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" set LIBSODIUMDIR=C:\projects\libsodium
|
2018-04-25 21:17:32 +01:00
|
|
|
- if "%WITH_LIBSODIUM%"=="ON" (
|
|
|
|
if not exist "%LIBSODIUMDIR%" (
|
|
|
|
git clone --branch stable --depth 1 --quiet "https://github.com/jedisct1/libsodium.git" %LIBSODIUMDIR%
|
|
|
|
) else (
|
|
|
|
cd "%LIBSODIUMDIR%" &&
|
|
|
|
git pull
|
|
|
|
)
|
|
|
|
)
|
2017-11-22 18:59:29 +00:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" msbuild /v:minimal /maxcpucount:%NUMBER_OF_PROCESSORS% /p:Configuration=%Configuration%DLL %LIBSODIUMDIR%\builds\msvc\%MSVCYEAR%\libsodium\libsodium.vcxproj
|
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" set SODIUM_LIBRARY_DIR="%LIBSODIUMDIR%\bin\%Platform%\%Configuration%\%MSVCVERSION%\dynamic"
|
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" set SODIUM_INCLUDE_DIR="%LIBSODIUMDIR%\src\libsodium\include"
|
2018-04-25 21:17:32 +01:00
|
|
|
- ps: if (${env:WITH_LIBSODIUM} -eq "ON") { Copy-Item "C:\projects\libsodium\bin\${env:Platform}\${env:Configuration}\${env:MSVCVERSION}\dynamic\libsodium.lib" -Destination "C:\projects\libsodium\bin\${env:Platform}\${env:Configuration}\${env:MSVCVERSION}\dynamic\sodium.lib" }
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
clone_folder: C:\projects\libzmq
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- cmd: set LIBZMQ_BUILDDIR=C:\projects\build_libzmq
|
|
|
|
- cmd: md "%LIBZMQ_BUILDDIR%"
|
|
|
|
- cd "%LIBZMQ_BUILDDIR%"
|
2018-05-15 12:46:11 +02:00
|
|
|
- cmd: cmake -D CMAKE_INCLUDE_PATH="%SODIUM_INCLUDE_DIR%" -D CMAKE_LIBRARY_PATH="%SODIUM_LIBRARY_DIR%" -D WITH_LIBSODIUM="%WITH_LIBSODIUM%" -D ENABLE_DRAFTS="ON" -D ENABLE_CURVE="%ENABLE_CURVE%" -D POLLER="%POLLER%" -D CMAKE_C_FLAGS_RELEASE="/MT" -D CMAKE_C_FLAGS_DEBUG="/MTd" -D WITH_LIBSODIUM="%WITH_LIBSODIUM%" -D LIBZMQ_WERROR="ON" -G "%CMAKE_GENERATOR%" "%APPVEYOR_BUILD_FOLDER%"
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
parallel: true
|
|
|
|
project: C:\projects\build_libzmq\ZeroMQ.sln
|
|
|
|
verbosity: minimal
|
|
|
|
|
|
|
|
after_build:
|
|
|
|
- cmd: cd %LIBZMQ_BUILDDIR%\bin\%Configuration%"
|
2017-11-22 18:59:29 +00:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" copy "%SODIUM_LIBRARY_DIR%\libsodium.dll" .
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: 7z a -y -bd -mx=9 libzmq.zip *.exe *.dll
|
|
|
|
- ps: Push-AppveyorArtifact "libzmq.zip" -Filename "libzmq-${env:Platform}-${env:Configuration}.zip"
|
2015-10-23 16:13:53 +02:00
|
|
|
|
|
|
|
test_script:
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: cd "%LIBZMQ_BUILDDIR%"
|
2018-04-29 20:53:23 +01:00
|
|
|
- cmd: ctest -C "%Configuration%" -V -j5
|
2015-10-23 01:32:00 +02:00
|
|
|
|