2018-04-17 10:29:47 +02:00
|
|
|
version: build-{build}
|
|
|
|
|
|
|
|
os:
|
|
|
|
- Visual Studio 2017
|
|
|
|
- Visual Studio 2015
|
|
|
|
|
|
|
|
init:
|
|
|
|
- cmake --version
|
|
|
|
- msbuild /version
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
- x64
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
|
|
|
|
environment:
|
2018-04-20 12:44:21 +02:00
|
|
|
ZMQ_VER: 4.2.5
|
|
|
|
|
|
|
|
cache:
|
2018-04-22 18:57:55 +02:00
|
|
|
- libzmq -> appveyor.yml
|
2018-04-21 22:58:47 +02:00
|
|
|
- Build/tests/googletest -> tests/cmake/googletest-download.cmake
|
2018-04-17 10:29:47 +02:00
|
|
|
|
|
|
|
before_build:
|
2018-04-22 18:57:55 +02:00
|
|
|
- if not exist libzmq (
|
2018-04-20 12:44:21 +02:00
|
|
|
appveyor DownloadFile https://github.com/zeromq/libzmq/archive/v%ZMQ_VER%.zip &&
|
|
|
|
7z x v%ZMQ_VER%.zip >NUL &&
|
2018-04-22 19:09:10 +02:00
|
|
|
cmake -H./libzmq-%ZMQ_VER% -Blibzmq-%ZMQ_VER%/build -DCMAKE_INSTALL_PREFIX=libzmq -DENABLE_DRAFTS=ON -DWITH_PERF_TOOL=OFF -DZMQ_BUILD_TESTS=OFF -DENABLE_CPACK=OFF -A%PLATFORM% &&
|
2018-04-22 18:57:55 +02:00
|
|
|
cmake --build libzmq-%ZMQ_VER%/build --target install)
|
2018-05-23 20:15:43 +02:00
|
|
|
- cmake -H. -BBuild -DENABLE_DRAFTS=ON -DCMAKE_PREFIX_PATH=./libzmq -A%PLATFORM%
|
2018-04-17 10:29:47 +02:00
|
|
|
|
|
|
|
build:
|
|
|
|
project: Build/cppzmq.sln
|
|
|
|
verbosity: normal
|
|
|
|
|
|
|
|
test_script:
|
2018-04-22 18:57:55 +02:00
|
|
|
- cp libzmq/bin/libzmq*.dll Build/bin/%configuration%/
|
2018-04-17 10:29:47 +02:00
|
|
|
- cd Build
|
|
|
|
- ctest -V -C %configuration%
|