| 201 | |
| 202 | === `appveyor.yml` content === |
| 203 | {{{ |
| 204 | # Use, modification, and distribution are |
| 205 | # subject to the Boost Software License, Version 1.0. (See accompanying |
| 206 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 207 | # |
| 208 | # Copyright Antony Polukhin 2016-2017. |
| 209 | |
| 210 | # |
| 211 | # See https://svn.boost.org/trac/boost/wiki/TravisCoverals for description of this file |
| 212 | # and how it can be used with Boost libraries. |
| 213 | # |
| 214 | # File revision #3 |
| 215 | |
| 216 | init: |
| 217 | - set BRANCH_TO_TEST=%APPVEYOR_REPO_BRANCH% # Change to branch you wish to test. Use %APPVEYOR_REPO_BRANCH% for current branch. |
| 218 | - set BOOST_REMOVE=variant # Remove this folder from lib from full clone of Boost. If you are testing `any` repo, write here `any`. |
| 219 | |
| 220 | ############################################################################################################### |
| 221 | # From this point and below code is same for all the Boost libs |
| 222 | ############################################################################################################### |
| 223 | |
| 224 | version: 1.64.{build}-{branch} |
| 225 | |
| 226 | # branches to build |
| 227 | branches: |
| 228 | except: |
| 229 | - gh-pages |
| 230 | |
| 231 | skip_tags: true |
| 232 | |
| 233 | before_build: |
| 234 | - set PATH=%PATH%;C:\\MinGW\\bin |
| 235 | # Set this to the name of the library |
| 236 | - set PROJECT_TO_TEST=%APPVEYOR_PROJECT_NAME% |
| 237 | - echo "Testing %PROJECT_TO_TEST%" |
| 238 | # Cloning Boost libraries (fast nondeep cloning) |
| 239 | - set BOOST=C:/boost-local |
| 240 | - git init %BOOST% |
| 241 | - cd %BOOST% |
| 242 | - git remote add --no-tags -t %BRANCH_TO_TEST% origin https://github.com/boostorg/boost.git |
| 243 | - git fetch --depth=1 |
| 244 | - git checkout %BRANCH_TO_TEST% |
| 245 | - git submodule update --init --merge |
| 246 | - git remote set-branches --add origin %BRANCH_TO_TEST% |
| 247 | - git pull --recurse-submodules |
| 248 | - git status |
| 249 | - rm -rf %BOOST%/libs/%BOOST_REMOVE% |
| 250 | - mv %APPVEYOR_BUILD_FOLDER% %BOOST%/libs/%PROJECT_TO_TEST% |
| 251 | - set TRAVIS_BUILD_DIR=%BOOST%/libs/%PROJECT_TO_TEST% |
| 252 | |
| 253 | build_script: |
| 254 | - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 |
| 255 | - bootstrap.bat |
| 256 | - b2.exe headers |
| 257 | - cd %BOOST%/libs/%PROJECT_TO_TEST%/test |
| 258 | |
| 259 | after_build: |
| 260 | before_test: |
| 261 | test_script: |
| 262 | - ..\..\..\b2.exe address-model=32 architecture=x86 toolset=msvc,gcc cxxflags="-DBOOST_TRAVISCI_BUILD" -sBOOST_BUILD_PATH=. |
| 263 | |
| 264 | after_test: |
| 265 | on_success: |
| 266 | on_failure: |
| 267 | on_finish: |
| 268 | }}} |