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 #6 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 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 38 TOOLSET: msvc-14.1,clang-win 39 CXXSTD: 14,17 40 ADDRMD: 32,64 41 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 42 ADDPATH: C:\cygwin\bin; 43 TOOLSET: gcc 44 CXXSTD: 03,11,14,1z 45 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 46 ADDPATH: C:\cygwin64\bin; 47 TOOLSET: gcc 48 CXXSTD: 03,11,14,1z 49 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 50 ADDPATH: C:\mingw\bin; 51 TOOLSET: gcc 52 CXXSTD: 03,11,14,1z 53 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 54 ADDPATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin; 55 TOOLSET: gcc 56 CXXSTD: 03,11,14,1z 57 58before_build: 59 - set BOOST_BRANCH=develop 60 - if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master 61 - echo "Testing %APPVEYOR_PROJECT_NAME%" 62 # Cloning Boost libraries (fast nondeep cloning) 63 - set BOOST=C:/boost-local 64 - git clone -b %BOOST_BRANCH% --depth 10 https://github.com/boostorg/boost.git %BOOST% 65 - cd %BOOST% 66 - git submodule update --init --depth 10 tools/build tools/boostdep 67 68 - rm -rf %BOOST%/libs/%BOOST_LIBS_FOLDER% 69 - mv -f %APPVEYOR_BUILD_FOLDER% %BOOST%/libs/%BOOST_LIBS_FOLDER% 70 - python tools/boostdep/depinst/depinst.py --git_args "--depth 1 --jobs 2" %BOOST_LIBS_FOLDER% 71 72build_script: 73 - cmd /c bootstrap 74 - b2.exe headers 75 - cd %BOOST%/libs/%BOOST_LIBS_FOLDER%/test 76 77after_build: 78before_test: 79test_script: 80 - PATH=%ADDPATH%%PATH% 81 - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% 82 - if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD% 83 - echo "Running command ..\..\..\b2 -j3 toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release" 84 - ..\..\..\b2.exe -j3 toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release cxxflags="-DBOOST_TRAVISCI_BUILD" 85 86after_test: 87on_success: 88on_failure: 89on_finish: 90