# Copyright 2016-2019 Peter Dimov # 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) version: 1.0.{build}-{branch} shallow_clone: true branches: only: - master - develop - /feature\/.*/ image: Visual Studio 2017 environment: matrix: - LIB: filesystem TOOLSET: msvc-14.1 - LIB: filesystem UBP: 1 TOOLSET: msvc-14.1 - LIB: filesystem LAYOUT: tagged TOOLSET: msvc-14.0 - LIB: filesystem TOOLSET: msvc-14.1 STAGE: 1 - LIB: filesystem UBP: 1 TOOLSET: msvc-14.1 STAGE: 1 - LIB: headers TOOLSET: msvc-14.1 - LIB: iostreams TOOLSET: msvc-14.1 UBP: 1 - LIB: iostreams TOOLSET: msvc-14.1 UBP: 1 STAGE: 1 - LIB: log TOOLSET: msvc-14.1 - LIB: python TOOLSET: msvc-14.1 PYTHON: 2.7,3.6,3.7 USE_PYTHON_VERSION: 2.7 - LIB: serialization UBP: 1 TOOLSET: msvc-14.1 - LIB: regex UBP: 1 TOOLSET: msvc-14.1 - LIB: test UBP: 1 TOOLSET: msvc-14.1 - LIB: thread TOOLSET: msvc-14.1 install: - set BOOST_BRANCH=develop - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master - cd .. - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root - cd boost-root - git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/%LIB% - python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" %LIB% - rd /s/q tools\boost_install - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% tools\boost_install\ - cmd /c bootstrap - set USER_CONFIG=%HOMEDRIVE%%HOMEPATH%\user-config.jam - |- echo using python : 2.7 : C:/Python27 ; >> %USER_CONFIG% - |- echo using python : 3.6 : C:/Python36 ; >> %USER_CONFIG% - |- echo using python : 3.7 : C:/Python37 ; >> %USER_CONFIG% - b2 -d0 headers build: off test_script: - if not "%LAYOUT%" == "" SET LAYOUT=--layout=%LAYOUT% - if not "%TOOLSET%" == "" SET TOOLSET=toolset=%TOOLSET% - if not "%PYTHON%" == "" SET PYTHON=python=%PYTHON% - set ZLIB_SOURCE=%CD%\tools\boost_install\test\iostreams\zlib-1.2.11 - set BZIP2_SOURCE=%CD%\tools\boost_install\test\iostreams\bzip2-1.0.6 - if "%STAGE%" == "" set B2_INSTALL=--prefix=C:\projects\.local install - if "%STAGE%" == "" b2 -j3 -d0 --with-headers %TOOLSET% %LAYOUT% %PYTHON% %B2_INSTALL% - b2 -j3 --with-%LIB% %TOOLSET% %LAYOUT% %PYTHON% %B2_INSTALL% - cd tools\boost_install\test\%LIB% - mkdir __build__ && cd __build__ - if "%UBP%" == "" SET UBP=0 - if "%STAGE%" == "" SET CMAKE_INSTALL=-DCMAKE_INSTALL_PREFIX=C:\projects\.local - if NOT "%STAGE%" == "" SET CMAKE_INSTALL=-DUSE_STAGED_BOOST=1 - if NOT "%USE_PYTHON_VERSION%" == "" SET USE_PYTHON_VERSION=-DUSE_PYTHON_VERSION=%USE_PYTHON_VERSION% - cmake -DUSE_BOOST_PACKAGE=%UBP% -DBoost_VERBOSE=ON %USE_PYTHON_VERSION% %CMAKE_INSTALL% .. - PATH %PATH%;C:\projects\.local\lib - cmake --build . --config Debug && cmake --build . --config Debug --target check - cmake --build . --config Release && cmake --build . --config Release --target check - cmake --build . --config MinSizeRel && cmake --build . --config MinSizeRel --target check - cmake --build . --config RelWithDebInfo && cmake --build . --config RelWithDebInfo --target check