39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Copyright 2017-2019 Hans Dembinski
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
|
|
|
shallow_clone: true
|
|
max_jobs: 2
|
|
|
|
image:
|
|
- Visual Studio 2022
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- develop
|
|
|
|
build: off
|
|
|
|
environment:
|
|
B2_OPTS: -j2 -q warnings-as-errors=on
|
|
|
|
install:
|
|
# clone minimal set of Boost libraries
|
|
- cd ..
|
|
- git clone -b %APPVEYOR_REPO_BRANCH% --depth 5 https://github.com/boostorg/boost.git
|
|
- cd boost
|
|
- git submodule update --init --depth 5 tools/build tools/boostdep
|
|
|
|
# replace Boost library with this project and install dependencies
|
|
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\histogram\
|
|
- python tools\boostdep\depinst\depinst.py -N units -N range -N accumulators --git_args "--depth 5 --jobs 2" histogram
|
|
|
|
# prepare Boost build
|
|
- cmd /c bootstrap & cd libs\histogram
|
|
|
|
test_script:
|
|
# cxxstd=latest (aka 20) breaks VS 2022 in algorithm_project_test so we use cxxstd=17
|
|
# msvc-14.3 breaks test//serialization, more precisely axis_variant_serialization_test
|
|
- ..\..\b2 %B2_OPTS% cxxstd=17 test//minimal
|