1# Use, modification, and distribution are 2# subject to the Boost Software License, Version 1.0. (See accompanying 3# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4# 5# Copyright Antony Polukhin 2016-2021. 6 7# 8# See https://svn.boost.org/trac/boost/wiki/TravisCoverals for description of this file 9# and how it can be used with Boost libraries. 10# 11# File revision #7 12 13init: 14 # boost-local/libs/ folder to put this library into. This may be useful, if you're for example running Travis 15 # from `Boost.DLL` repo while Boost already has `dll` and with to replace `dll` with content of`Boost.DLL`. 16 # 17 # Otherwise just leave the default value - set BOOST_LIBS_FOLDER=%APPVEYOR_PROJECT_NAME% 18 - set BOOST_LIBS_FOLDER=%APPVEYOR_PROJECT_NAME% 19 20############################################################################################################### 21# From this point and below code is same for all the Boost libs 22############################################################################################################### 23 24version: 1.71.{build}-{branch} 25 26# branches to build 27branches: 28 except: 29 - gh-pages 30 31skip_tags: true 32 33environment: 34 matrix: 35 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 36 TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0,msvc-12.0 37 ADDRMD: 32 38 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 39 TOOLSET: msvc-14.1,clang-win 40 CXXSTD: 14,17 41 ADDRMD: 32,64 42 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 43 ADDPATH: C:\cygwin\bin; 44 TOOLSET: gcc 45 CXXSTD: 03,11,14,1z 46 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 47 ADDPATH: C:\cygwin64\bin; 48 TOOLSET: gcc 49 CXXSTD: 03,11,14,1z 50 VARIANT: release # "variant_get_test.o: File too big" errors in debug 51 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 52 ADDPATH: C:\mingw\bin; 53 TOOLSET: gcc 54 CXXSTD: 03,11,14,1z 55 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 56 ADDPATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin; 57 TOOLSET: gcc 58 CXXSTD: 03,11,14,1z 59 VARIANT: release # "variant_get_test.o: File too big" errors in debug 60 61before_build: 62 - set BOOST_BRANCH=develop 63 - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master 64 - echo "Testing %APPVEYOR_PROJECT_NAME%" 65 # Cloning Boost libraries (fast nondeep cloning) 66 - set BOOST=C:/boost-local 67 - git clone -b %BOOST_BRANCH% --depth 10 https://github.com/boostorg/boost.git %BOOST% 68 - cd %BOOST% 69 - git submodule update --init --depth 10 tools/build tools/boostdep 70 71 - rm -rf %BOOST%/libs/%BOOST_LIBS_FOLDER% 72 - mv -f %APPVEYOR_BUILD_FOLDER% %BOOST%/libs/%BOOST_LIBS_FOLDER% 73 - python tools/boostdep/depinst/depinst.py --git_args "--depth 10 --jobs 2" %BOOST_LIBS_FOLDER% 74 75build_script: 76 - cmd /c bootstrap 77 - b2.exe headers 78 - cd %BOOST%/libs/%BOOST_LIBS_FOLDER%/test 79 80after_build: 81before_test: 82test_script: 83 - PATH=%ADDPATH%%PATH% 84 - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% 85 - if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD% 86 - if "%VARIANT%"== "" set VARIANT=debug,release 87 - set VARIANT=variant=%VARIANT% 88 - echo "Running command ..\..\..\b2 -j3 toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release" 89 - ..\..\..\b2.exe -j3 toolset=%TOOLSET% %CXXSTD% %ADDRMD% %VARIANT% cxxflags="-DBOOST_TRAVISCI_BUILD" 90 91after_test: 92on_success: 93on_failure: 94on_finish: 95