|
| 1 | +# Copyright 2016, 2017 Peter Dimov |
| 2 | +# Copyright 2017 - 2019 James E. King III |
| 3 | +# Copyright 2019 - 2021 Alexander Grund |
| 4 | +# |
| 5 | +# Distributed under the Boost Software License, Version 1.0. |
| 6 | +# https://www.boost.org/LICENSE_1_0.txt |
| 7 | + |
| 8 | +version: 1.0.{build}-{branch} |
| 9 | + |
| 10 | +shallow_clone: true |
| 11 | + |
| 12 | +branches: |
| 13 | + only: |
| 14 | + - master |
| 15 | + - develop |
| 16 | + - /bugfix\/.*/ |
| 17 | + - /feature\/.*/ |
| 18 | + - /fix\/.*/ |
| 19 | + - /pr\/.*/ |
| 20 | + |
| 21 | +matrix: |
| 22 | + fast_finish: false |
| 23 | + # Adding MAYFAIL to any matrix job allows it to fail but the build stays green: |
| 24 | + allow_failures: |
| 25 | + - MAYFAIL: true |
| 26 | + |
| 27 | +environment: |
| 28 | + global: |
| 29 | + B2_CI_VERSION: 1 |
| 30 | + GIT_FETCH_JOBS: 4 |
| 31 | + # see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties |
| 32 | + # to use the default for a given environment, comment it out; recommend you build debug and release however: |
| 33 | + # on Windows it is important to exercise all the possibilities, especially shared vs static, however most |
| 34 | + # libraries that care about this exercise it in their Jamfiles... |
| 35 | + B2_ADDRESS_MODEL: 32,64 |
| 36 | + B2_LINK: shared,static |
| 37 | + # B2_THREADING: threading=multi,single |
| 38 | + B2_VARIANT: release |
| 39 | + B2_FLAGS: testing.execute=off |
| 40 | + B2_DEFINES: BOOST_LOCALE_DISABLE_DEPRECATED_03_WARNING |
| 41 | + |
| 42 | + matrix: |
| 43 | + - FLAVOR: Visual Studio 2008, 2010, 2012 |
| 44 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 45 | + B2_TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0 |
| 46 | + B2_ADDRESS_MODEL: 32 # No 64bit support |
| 47 | + |
| 48 | + - FLAVOR: Visual Studio 2013, 2015 |
| 49 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 50 | + B2_TOOLSET: msvc-12.0,msvc-14.0 |
| 51 | + |
| 52 | + - FLAVOR: Visual Studio 2017 C++14/17 |
| 53 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 54 | + B2_CXXSTD: 14,17 |
| 55 | + B2_TOOLSET: msvc-14.1 |
| 56 | + |
| 57 | + - FLAVOR: Visual Studio 2017 C++2a Strict |
| 58 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 59 | + B2_CXXFLAGS: -permissive- |
| 60 | + B2_CXXSTD: 2a |
| 61 | + B2_TOOLSET: msvc-14.1 |
| 62 | + |
| 63 | + - FLAVOR: Visual Studio 2019 |
| 64 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 65 | + B2_CXXFLAGS: -permissive- |
| 66 | + B2_CXXSTD: 14,17,2a |
| 67 | + B2_TOOLSET: msvc-14.2 |
| 68 | + |
| 69 | + - FLAVOR: Visual Studio 2022 |
| 70 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 |
| 71 | + B2_CXXFLAGS: -permissive- |
| 72 | + B2_CXXSTD: 14,17,20 |
| 73 | + B2_TOOLSET: msvc-14.3 |
| 74 | + |
| 75 | + - FLAVOR: clang-cl |
| 76 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 77 | + B2_ADDRESS_MODEL: 64 |
| 78 | + B2_CXXSTD: 11,14,17 |
| 79 | + B2_TOOLSET: clang-win |
| 80 | + |
| 81 | + - FLAVOR: clang-cl using windows.h |
| 82 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 83 | + B2_ADDRESS_MODEL: 64 |
| 84 | + B2_CXXSTD: 17 |
| 85 | + B2_TOOLSET: clang-win |
| 86 | + B2_DEFINES: BOOST_USE_WINDOWS_H |
| 87 | + |
| 88 | + - FLAVOR: cygwin (32-bit) |
| 89 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 90 | + ADDPATH: C:\cygwin\bin; |
| 91 | + B2_ADDRESS_MODEL: 32 |
| 92 | + B2_CXXSTD: 03,11,14,1z |
| 93 | + B2_TOOLSET: gcc |
| 94 | + |
| 95 | + - FLAVOR: cygwin (64-bit) |
| 96 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 97 | + ADDPATH: C:\cygwin64\bin; |
| 98 | + B2_ADDRESS_MODEL: 64 |
| 99 | + B2_CXXSTD: 03,11,14,1z |
| 100 | + B2_TOOLSET: gcc |
| 101 | + |
| 102 | + # (Currently) the images up to 2017 use an older Cygwin |
| 103 | + # This tests that the library works with more recent versions |
| 104 | + - FLAVOR: cygwin (64-bit, latest) |
| 105 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 |
| 106 | + ADDPATH: C:\cygwin64\bin; |
| 107 | + B2_ADDRESS_MODEL: 64 |
| 108 | + B2_CXXSTD: 03,11,14,1z |
| 109 | + B2_TOOLSET: gcc |
| 110 | + |
| 111 | + - FLAVOR: mingw32 |
| 112 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 113 | + B2_ADDRESS_MODEL: 32 |
| 114 | + ADDPATH: C:\mingw\bin; |
| 115 | + B2_CXXSTD: 03,11,14,1z |
| 116 | + B2_TOOLSET: gcc |
| 117 | + |
| 118 | + - FLAVOR: mingw64 |
| 119 | + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 120 | + ADDPATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin; |
| 121 | + B2_ADDRESS_MODEL: 64 |
| 122 | + B2_CXXSTD: 03,11,14,17,2a |
| 123 | + B2_TOOLSET: gcc |
| 124 | + |
| 125 | +install: |
| 126 | + - git clone --depth 1 https://github.com/boostorg/boost-ci.git C:\boost-ci-cloned |
| 127 | + # Copy ci folder if not testing Boost.CI |
| 128 | + - if NOT "%APPVEYOR_PROJECT_NAME%" == "boost-ci" xcopy /s /e /q /i /y C:\boost-ci-cloned\ci .\ci |
| 129 | + - rmdir /s /q C:\boost-ci-cloned |
| 130 | + - ci\appveyor\install.bat |
| 131 | + |
| 132 | +build: off |
| 133 | + |
| 134 | +test_script: ci\build.bat |
| 135 | + |
| 136 | +for: |
| 137 | + # CodeCov coverage build |
| 138 | + - matrix: |
| 139 | + only: [COVERAGE: true] |
| 140 | + test_script: [ps: ci\codecov.ps1] |
0 commit comments