mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
ae15964907
Currently cppzmq as relatively simple and header only library depends on rather complex unit test framework googletest. Current issues: - Googletest requires downloading and building it every time on travis as cache support is limited there - Googletest build is signifficant with comparison to cppzmq unittests total runtime Solution: Port existing tests to Catch - header only C++ framework and gain ~20% build speed up on travis. Why Catch? It is well know C++ header only testing framework. It works well, it is being kept up to date and maintainers seem to pay attention to community's comments and issues. We can not use Catch2 currently as we still support pre-C++11 compilers.
41 lines
991 B
YAML
41 lines
991 B
YAML
version: build-{build}
|
|
|
|
os:
|
|
- Visual Studio 2017
|
|
- Visual Studio 2015
|
|
|
|
init:
|
|
- cmake --version
|
|
- msbuild /version
|
|
|
|
platform:
|
|
- Win32
|
|
- x64
|
|
|
|
configuration:
|
|
- Debug
|
|
|
|
environment:
|
|
ZMQ_VER: 4.2.5
|
|
|
|
cache:
|
|
- libzmq -> appveyor.yml
|
|
- Build/catch -> tests/cmake/catch.cmake
|
|
|
|
before_build:
|
|
- if not exist libzmq (
|
|
appveyor DownloadFile https://github.com/zeromq/libzmq/archive/v%ZMQ_VER%.zip &&
|
|
7z x v%ZMQ_VER%.zip >NUL &&
|
|
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% &&
|
|
cmake --build libzmq-%ZMQ_VER%/build --target install)
|
|
- cmake -H. -BBuild -DENABLE_DRAFTS=ON -DCMAKE_PREFIX_PATH=./libzmq -A%PLATFORM%
|
|
|
|
build:
|
|
project: Build/cppzmq.sln
|
|
verbosity: normal
|
|
|
|
test_script:
|
|
- cp libzmq/bin/libzmq*.dll Build/bin/%configuration%/
|
|
- cd Build
|
|
- ctest -V -C %configuration%
|