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