cppzmq/appveyor.yml
Pawel Kurdybacha fdc145a09e Problem: Windows build broken because of multiple issues (#204)
* Problem: Windows build broken because of multiple issues

Windows issues:
* missing includes files
  Solution: added missing <memory> and <unordered_map>
  Here <map> was replaced with <unordered_map> as there is no need for
  sorted map.
* googletest fails because deprecation warning causing errors.
  Solution: D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING option added.
* googletest fails because by default, new Visual Studio projects
  link the C runtimes dynamically but Google Test links them statically.
  Solution: gtest_force_shared_crt=ON option added.

Besides that adding appveyor.yml configuration to add Windows build to
CI in order to prevent accidental Windows build breakage.
For now only Debug configuration as Release requires more time to figure
out.

* Problem: Windows build takes too long

Solution: disabling tests and perf tools

* Problem: Windows unit_tests executable not finding lizmq dll.

Solution: copy libzmq dll to build bin directory.

* Problem: Windows build fails because wrong test path provided
2018-04-17 09:29:47 +01:00

36 lines
821 B
YAML

version: build-{build}
os:
- Visual Studio 2017
- Visual Studio 2015
init:
- cmake --version
- msbuild /version
platform:
- Win32
- x64
configuration:
- Debug
environment:
ZMQ_VERSION: 4.2.5
before_build:
- appveyor DownloadFile https://github.com/zeromq/libzmq/archive/v%ZMQ_VERSION%.zip
- 7z x v%ZMQ_VERSION%.zip >NUL
- cmake -H./libzmq-%ZMQ_VERSION% -BBuild-libzmq -DENABLE_DRAFTS=ON -DWITH_PERF_TOOL=OFF -DZMQ_BUILD_TESTS=OFF -DENABLE_CPACK=OFF -A%PLATFORM%
- cmake --build Build-libzmq
- cmake -H. -BBuild -DCMAKE_PREFIX_PATH=./Build-libzmq -A%PLATFORM%
build:
project: Build/cppzmq.sln
verbosity: normal
test_script:
- cp Build-libzmq/bin/%configuration%/libzmq*.dll Build/bin/%configuration%/
- cd Build
- ctest -V -C %configuration%