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
|
|
|
|
2018-04-30 17:04:53 +02:00
|
|
|
os: Visual Studio 2013
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
environment:
|
2018-04-30 17:04:53 +02:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 12 2013"
|
|
|
|
MSVCVERSION: "v120"
|
|
|
|
MSVCYEAR: "vs2013"
|
2018-06-01 11:47:42 +02:00
|
|
|
ENABLE_DRAFTS: ON
|
2015-10-23 16:13:53 +02:00
|
|
|
matrix:
|
2019-12-06 19:17:01 +01:00
|
|
|
- platform: x64
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
|
|
|
MSVCVERSION: "v142"
|
|
|
|
MSVCYEAR: "vs2019"
|
|
|
|
ARTIFACT_NAME: v142-x64
|
2018-05-23 16:07:22 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: OFF # unavailable build files for VS2008
|
2023-02-18 14:43:16 +01:00
|
|
|
ENABLE_CURVE: OFF
|
2018-05-23 16:07:22 +02:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 9 2008"
|
|
|
|
MSVCVERSION: "v90"
|
|
|
|
MSVCYEAR: "vs2008"
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v90
|
2018-05-23 16:07:22 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
2023-01-12 01:46:40 +01:00
|
|
|
WITH_LIBSODIUM: OFF
|
|
|
|
ENABLE_CURVE: OFF
|
2018-05-23 16:07:22 +02:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 10 2010"
|
|
|
|
MSVCVERSION: "v100"
|
|
|
|
MSVCYEAR: "vs2010"
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v100
|
2015-10-23 16:13:53 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
2017-04-05 08:53:00 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v120
|
2019-06-13 13:22:28 +02:00
|
|
|
- platform: x64
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
ARTIFACT_NAME: v120-x64
|
2018-05-23 11:52:07 +02:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
POLLER: epoll
|
2018-05-26 17:10:08 +02:00
|
|
|
API_POLLER: poll
|
2018-05-23 11:52:07 +02:00
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2019-03-01 20:19:52 +01:00
|
|
|
TEST_OPTIONS: '-E "(test_many_sockets)"'
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v120-epoll
|
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
|
2019-03-17 13:18:13 +01:00
|
|
|
TEST_OPTIONS: '-E "(test_many_sockets)"'
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v120-gd
|
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
|
2019-03-17 13:18:13 +01:00
|
|
|
TEST_OPTIONS: '-E "(test_many_sockets)"'
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v120-gd-x64
|
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
|
2018-06-01 11:47:42 +02:00
|
|
|
ENABLE_DRAFTS: OFF
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v120-nocurve
|
2017-11-22 14:31:43 +01:00
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
2018-04-30 17:04:53 +02:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 14 2015"
|
|
|
|
MSVCVERSION: "v140"
|
|
|
|
MSVCYEAR: "vs2015"
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v140
|
2019-06-13 13:22:28 +02:00
|
|
|
- platform: x64
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 14 2015"
|
|
|
|
MSVCVERSION: "v140"
|
|
|
|
MSVCYEAR: "vs2015"
|
|
|
|
ARTIFACT_NAME: v140-x64
|
2017-11-22 14:31:43 +01: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"
|
2019-03-01 20:19:52 +01:00
|
|
|
TEST_OPTIONS: '-E "(test_many_sockets)"'
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: v141
|
2019-06-13 13:22:28 +02:00
|
|
|
- platform: x64
|
|
|
|
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"
|
|
|
|
TEST_OPTIONS: '-E "(test_many_sockets)"'
|
|
|
|
ARTIFACT_NAME: v141-x64
|
2018-05-24 14:05:22 +02:00
|
|
|
- platform: cygwin64
|
|
|
|
WITH_LIBSODIUM: OFF
|
2023-02-18 14:43:16 +01:00
|
|
|
ENABLE_CURVE: OFF
|
2018-05-24 14:05:22 +02:00
|
|
|
CMAKE_GENERATOR: "Unix Makefiles"
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: cygwin64
|
2018-07-29 23:40:35 +02:00
|
|
|
- platform: mingw64
|
|
|
|
WITH_LIBSODIUM: OFF
|
2023-02-18 14:43:16 +01:00
|
|
|
ENABLE_CURVE: OFF
|
2018-07-29 23:40:35 +02:00
|
|
|
CMAKE_GENERATOR: "MSYS Makefiles"
|
2019-06-11 14:35:22 +02:00
|
|
|
ARTIFACT_NAME: mingw64
|
2019-12-06 14:27:24 +01:00
|
|
|
- platform: Win32-uwp
|
|
|
|
configuration: Debug
|
|
|
|
WITH_LIBSODIUM: OFF
|
|
|
|
ENABLE_CURVE: OFF
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
|
|
|
MSVCVERSION: "v141"
|
|
|
|
MSVCYEAR: "vs2017"
|
|
|
|
ARTIFACT_NAME: v141-gd-uwp
|
|
|
|
CMAKE_SYSTEM_NAME: WindowsStore
|
|
|
|
CMAKE_SYSTEM_VERSION: 10.0.18362
|
|
|
|
EXTRA_FLAGS: -DCMAKE_SYSTEM_NAME=%CMAKE_SYSTEM_NAME% -DCMAKE_SYSTEM_VERSION=%CMAKE_SYSTEM_VERSION% -DBUILD_TESTS=OFF
|
|
|
|
- platform: Win32-uwp
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: OFF
|
|
|
|
ENABLE_CURVE: OFF
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
|
|
|
MSVCVERSION: "v141"
|
|
|
|
MSVCYEAR: "vs2017"
|
|
|
|
ARTIFACT_NAME: v141-uwp
|
|
|
|
CMAKE_SYSTEM_NAME: WindowsStore
|
|
|
|
CMAKE_SYSTEM_VERSION: 10.0.18362
|
|
|
|
EXTRA_FLAGS: -DCMAKE_SYSTEM_NAME=%CMAKE_SYSTEM_NAME% -DCMAKE_SYSTEM_VERSION=%CMAKE_SYSTEM_VERSION% -DBUILD_TESTS=OFF
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: false
|
2018-05-25 08:51:21 +02:00
|
|
|
allow_failures:
|
|
|
|
- platform: cygwin64 # TODO allow failures until tests are fixed
|
2018-07-29 23:40:35 +02:00
|
|
|
- platform: mingw64 # TODO allow failures until tests are fixed
|
2015-10-23 01:32:00 +02:00
|
|
|
|
|
|
|
init:
|
2018-05-26 17:10:08 +02:00
|
|
|
- cmd: if "%NO_PR%"=="TRUE" (
|
|
|
|
if "%APPVEYOR_PULL_REQUEST_NUMBER%" NEQ "" (
|
|
|
|
echo "Build is disabled for PRs, aborting" &&
|
|
|
|
appveyor exit
|
|
|
|
)
|
|
|
|
)
|
2015-10-23 01:32:00 +02:00
|
|
|
#- 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 22:17:32 +02:00
|
|
|
cache:
|
|
|
|
- C:\projects\libsodium
|
2018-05-24 14:05:22 +02:00
|
|
|
- C:\cygwin64\var\cache\setup
|
2018-04-25 22:17:32 +02:00
|
|
|
|
2015-10-23 01:32:00 +02:00
|
|
|
install:
|
2018-05-24 14:05:22 +02:00
|
|
|
- cmd: if "%Platform%"=="cygwin64" C:\cygwin64\setup-x86_64.exe --quiet-mode --no-shortcuts --upgrade-also --packages cmake,cygwin-devel,gcc-g++,libncurses-devel,make,pkg-config
|
|
|
|
- cmd: if "%Platform%"=="cygwin64" set PATH=C:\cygwin64\bin;%PATH%
|
2018-07-29 23:40:35 +02:00
|
|
|
- cmd: if "%Platform%"=="mingw64" C:\msys64\usr\bin\bash -lc "pacman -Qg"
|
|
|
|
- cmd: if "%Platform%"=="mingw64" set PATH=C:\msys64\usr\bin;%PATH%
|
2019-12-06 19:17:01 +01:00
|
|
|
- cmd: if "%Platform%"=="x64" (if not "%MSVCVERSION%"=="v142" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64")
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: echo "Generator='%CMAKE_GENERATOR%'"
|
|
|
|
- cmd: echo "Platform='%Platform%'"
|
2017-11-22 19:59:29 +01:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" set LIBSODIUMDIR=C:\projects\libsodium
|
2021-07-04 13:24:09 +02:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" (
|
|
|
|
git config --global user.email "test@appveyor.com" &&
|
|
|
|
git config --global user.name "appveyor"
|
|
|
|
)
|
2018-07-29 23:40:35 +02:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" (
|
|
|
|
if not exist "%LIBSODIUMDIR%" (
|
|
|
|
git clone --branch stable --depth 1 --quiet "https://github.com/jedisct1/libsodium.git" %LIBSODIUMDIR%
|
|
|
|
) else (
|
2021-07-04 19:35:14 +02:00
|
|
|
git -C "%LIBSODIUMDIR%" fetch --all && git -C "%LIBSODIUMDIR%" reset --hard origin/stable
|
2018-07-29 23:40:35 +02:00
|
|
|
)
|
|
|
|
)
|
2017-11-22 19:59:29 +01: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 22:17:32 +02: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:
|
2018-05-16 09:12:26 +02:00
|
|
|
- cmd: set LIBZMQ_SRCDIR=%cd%
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: set LIBZMQ_BUILDDIR=C:\projects\build_libzmq
|
2018-05-16 09:12:26 +02:00
|
|
|
# TODO this does not work with sonarcloud.io, as it misses the sonar-cxx plugin
|
|
|
|
# - cmd: curl -L https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.1.0.1141-windows.zip -o sonar-scanner-cli-3.1.0.1141-windows.zip
|
|
|
|
# - cmd: unzip sonar-scanner-cli-3.1.0.1141-windows.zip
|
|
|
|
# - cmd: set BUILDLOG="%LIBZMQ_SRCDIR%\build.log"
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: md "%LIBZMQ_BUILDDIR%"
|
|
|
|
- cd "%LIBZMQ_BUILDDIR%"
|
2018-07-29 23:40:35 +02:00
|
|
|
- cmd: if "%PLATFORM%" == "cygwin64" set APPVEYOR_BUILD_FOLDER=/cygdrive/C/projects/libzmq
|
2019-03-01 12:43:22 +01:00
|
|
|
- cmd: if "%ENABLE_ANALYSIS%"=="ON" ( set LIBZMQ_WERROR="OFF" ) else ( set LIBZMQ_WERROR="ON" )
|
|
|
|
- cmd: cmake -D CMAKE_INCLUDE_PATH="%SODIUM_INCLUDE_DIR%" -D CMAKE_LIBRARY_PATH="%SODIUM_LIBRARY_DIR%" -D WITH_LIBSODIUM="%WITH_LIBSODIUM%" -D ENABLE_DRAFTS="%ENABLE_DRAFTS%" -D ENABLE_ANALYSIS="%ENABLE_ANALYSIS%" -D ENABLE_CURVE="%ENABLE_CURVE%" -D API_POLLER="%API_POLLER%" -D POLLER="%POLLER%" %EXTRA_FLAGS% -D WITH_LIBSODIUM="%WITH_LIBSODIUM%" -D LIBZMQ_WERROR="%LIBZMQ_WERROR%" -G "%CMAKE_GENERATOR%" "%APPVEYOR_BUILD_FOLDER%"
|
2018-05-16 09:12:26 +02:00
|
|
|
- cmd: cd "%LIBZMQ_SRCDIR%"
|
2019-06-11 14:35:22 +02:00
|
|
|
- ps: $env:ZMQ_VERSION_MAJOR = (Select-String -Path .\include\zmq.h -Pattern ".*#define ZMQ_VERSION_MAJOR ([0-9]+).*").Matches.Groups[1].Value
|
|
|
|
- ps: $env:ZMQ_VERSION_MINOR = (Select-String -Path .\include\zmq.h -Pattern ".*#define ZMQ_VERSION_MINOR ([0-9]+).*").Matches.Groups[1].Value
|
|
|
|
- ps: $env:ZMQ_VERSION_PATCH = (Select-String -Path .\include\zmq.h -Pattern ".*#define ZMQ_VERSION_PATCH ([0-9]+).*").Matches.Groups[1].Value
|
|
|
|
- ps: $env:ZMQ_VERSION = "${env:ZMQ_VERSION_MAJOR}.${env:ZMQ_VERSION_MINOR}.${env:ZMQ_VERSION_PATCH}"
|
|
|
|
- cmd: echo "ZMQ_VERSION is %ZMQ_VERSION%"
|
2015-10-23 01:32:00 +02:00
|
|
|
|
2018-05-23 16:07:22 +02:00
|
|
|
build_script:
|
2018-05-24 14:05:22 +02:00
|
|
|
- cmd: set verbosity=Minimal
|
|
|
|
- cmd: if "%MSVCYEAR%"=="vs2008" set verbosity=Normal
|
|
|
|
- cmd: if "%MSVCYEAR%"=="vs2008" set path=C:\Windows\Microsoft.NET\Framework\v3.5;%path%
|
|
|
|
- cmd: cd "%LIBZMQ_BUILDDIR%"
|
2019-12-06 14:27:24 +01:00
|
|
|
- cmd: if "%PLATFORM:~0,5%" == "Win32" (
|
2018-05-24 14:05:22 +02:00
|
|
|
if "%MSVCYEAR%"=="vs2008" (
|
|
|
|
cmake --build %LIBZMQ_BUILDDIR% --config %configuration% --target install
|
|
|
|
) else (
|
|
|
|
cmake --build %LIBZMQ_BUILDDIR% --config %configuration% --target install -- -verbosity:Minimal -maxcpucount -logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
)
|
2018-05-26 17:17:17 +02:00
|
|
|
)
|
2018-07-29 23:40:35 +02:00
|
|
|
- cmd: if "%PLATFORM%" == "x64" (
|
|
|
|
cmake --build %LIBZMQ_BUILDDIR% --config %configuration% --target install -- -verbosity:Minimal -maxcpucount -logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
)
|
|
|
|
- cmd: if "%PLATFORM%" == "cygwin64" (
|
|
|
|
cmake --build . -- -j5
|
|
|
|
)
|
|
|
|
- cmd: if "%PLATFORM%" == "mingw64" (
|
|
|
|
cmake --build . -- -j5
|
|
|
|
)
|
2015-10-23 01:32:00 +02:00
|
|
|
|
2018-05-16 09:12:26 +02:00
|
|
|
# TODO this does not work with sonarcloud.io, as it misses the sonar-cxx plugin
|
|
|
|
# build_script:
|
|
|
|
# - cmd: msbuild %LIBZMQ_BUILDDIR%\ZeroMQ.sln /verbosity:detailed >%BUILDLOG%
|
|
|
|
|
2015-10-23 01:32:00 +02:00
|
|
|
after_build:
|
2018-05-16 09:12:26 +02:00
|
|
|
# TODO this does not work with sonarcloud.io, as it misses the sonar-cxx plugin
|
|
|
|
# - cmd: cd "%LIBZMQ_SRCDIR%"
|
|
|
|
# - cmd: dir
|
|
|
|
# - cmd: sonar-scanner-3.1.0.1141-windows\bin\sonar-scanner
|
|
|
|
# -Dsonar.scm.provider=git
|
|
|
|
# -Dsonar.projectKey=libzmq-msvc
|
|
|
|
# -Dsonar.organization=sigiesec-github
|
|
|
|
# -Dsonar.sources=include,src,tests,unittests
|
|
|
|
# -Dsonar.host.url=https://sonarcloud.io
|
|
|
|
# -Dsonar.login=%SONARQUBE_TOKEN%
|
|
|
|
# -Dsonar.cxx.compiler.parser="Visual C++"
|
|
|
|
# -Dsonar.cxx.compiler.reportPath=build.log
|
|
|
|
# -Dsonar.cxx.compiler.charset=UTF-8
|
|
|
|
# -Dsonar.cxx.compiler.regex=^(?<filename>.*)\\((?<line>[0-9]+)\\):\\x20warning\\x20(?<id>C\\d\\d\\d\\d):(?<message>.*)$
|
2019-08-23 10:44:44 +02:00
|
|
|
# TODO this should be done differently, using the INSTALL cmake target, the current handling depends on the details of the CMakeLists.txt
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: cd %LIBZMQ_BUILDDIR%\bin\%Configuration%"
|
2017-11-22 19:59:29 +01:00
|
|
|
- cmd: if "%WITH_LIBSODIUM%"=="ON" copy "%SODIUM_LIBRARY_DIR%\libsodium.dll" .
|
2019-06-11 14:35:22 +02:00
|
|
|
- cmd: copy "%LIBZMQ_SRCDIR%\include\zmq.h" .
|
2019-10-07 08:40:23 +02:00
|
|
|
- cmd: copy ..\..\lib\%Configuration%\libzmq*.lib . & exit 0
|
2019-08-23 10:44:44 +02:00
|
|
|
- cmd: 7z a -y -bd -mx=9 libzmq.zip *.exe *.dll *.pdb *.h *.lib
|
2019-06-11 14:35:22 +02:00
|
|
|
- ps: Push-AppveyorArtifact "libzmq.zip" -Filename "libzmq-${env:ARTIFACT_NAME}-${env:ZMQ_VERSION_MAJOR}_${env:ZMQ_VERSION_MINOR}_${env:ZMQ_VERSION_PATCH}.zip"
|
2015-10-23 16:13:53 +02:00
|
|
|
|
|
|
|
test_script:
|
2015-10-23 01:32:00 +02:00
|
|
|
- cmd: cd "%LIBZMQ_BUILDDIR%"
|
2018-05-25 21:56:58 +02:00
|
|
|
# TODO run tests in parallel only on selected platforms, since they fail on others, see https://github.com/zeromq/libzmq/issues/3123
|
|
|
|
- cmd: if "%CMAKE_GENERATOR%"=="Visual Studio 12 2013" set PARALLELIZE=ON
|
|
|
|
- cmd: if "%CMAKE_GENERATOR%"=="Visual Studio 14 2015" set PARALLELIZE=ON
|
|
|
|
- cmd: if "%CMAKE_GENERATOR%"=="Visual Studio 12 2013 Win64" set PARALLELIZE=ON
|
|
|
|
- cmd: if "%CMAKE_GENERATOR%"=="Visual Studio 14 2015 Win64" set PARALLELIZE=ON
|
2019-03-01 20:19:52 +01:00
|
|
|
- cmd: if not defined TEST_OPTIONS set "TEST_OPTIONS= "
|
2018-05-25 21:56:58 +02:00
|
|
|
- cmd: if "%PARALLELIZE%"=="ON" (
|
|
|
|
echo "Running tests in parallel" &&
|
2019-03-01 20:19:52 +01:00
|
|
|
set TEST_OPTIONS=%TEST_OPTIONS% -j5
|
2018-05-25 21:56:58 +02:00
|
|
|
)
|
2019-06-12 15:11:32 +02:00
|
|
|
- cmd: if "%APPVEYOR_REPO_TAG%"=="false" (ctest -C "%Configuration%" -V %TEST_OPTIONS%)
|
2015-10-23 01:32:00 +02:00
|
|
|
|
2019-06-11 14:35:22 +02:00
|
|
|
|
2018-05-26 17:10:08 +02:00
|
|
|
# the analysis build is repeated; apparently appveyor only uses the first section that matches some branch
|
2018-05-24 09:44:52 +02:00
|
|
|
for:
|
|
|
|
-
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2018-05-26 17:10:08 +02:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
API_POLLER: poll
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
NO_PR: TRUE
|
|
|
|
- platform: x64
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
NO_PR: TRUE
|
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
NO_PR: TRUE
|
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
ENABLE_ANALYSIS: ON
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
|
|
|
MSVCVERSION: "v141"
|
|
|
|
MSVCYEAR: "vs2017"
|
|
|
|
NO_PR: TRUE
|
|
|
|
-
|
|
|
|
branches:
|
|
|
|
only:
|
2018-05-24 09:44:52 +02:00
|
|
|
- /.*analyze$/
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
WITH_LIBSODIUM: ON
|
|
|
|
ENABLE_CURVE: ON
|
|
|
|
ENABLE_ANALYSIS: ON
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
|
|
|
MSVCVERSION: "v141"
|
|
|
|
MSVCYEAR: "vs2017"
|
2018-05-26 17:10:08 +02:00
|
|
|
NO_PR: TRUE
|