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. 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 #1 12 13init: 14 - set BRANCH_TO_TEST=%APPVEYOR_REPO_BRANCH% 15 - set BOOST_REMOVE=process 16 17os: Visual Studio 2015 18configuration: Debug 19platform: x64 20build: off 21 22############################################################################################################### 23# From this point and below code is same for all the Boost libs 24############################################################################################################### 25 26version: 1.69.{build}-{branch} 27 28# branches to build 29branches: 30 except: 31 - gh-pages 32 33skip_tags: true 34 35before_build: 36 # Set this to the name of the library 37 - set PROJECT_TO_TEST=%APPVEYOR_PROJECT_NAME% 38 - echo "Testing %PROJECT_TO_TEST%" 39 # Cloning Boost libraries (fast nondeep cloning) 40 - if %BRANCH_TO_TEST%==master ( set BOOST_BRANCH=master ) else ( set BOOST_BRANCH=develop ) 41 - set BOOST=C:/boost-local 42 - git init %BOOST% 43 - cd %BOOST% 44 - git remote add --no-tags -t %BOOST_BRANCH% origin https://github.com/boostorg/boost.git 45 - git fetch --depth=1 46 - git checkout %BOOST_BRANCH% 47 - git submodule update --init --merge 48 - git remote set-branches --add origin %BOOST_BRANCH% 49 - git pull --recurse-submodules 50 - git submodule update --init 51 - git checkout %BOOST_BRANCH% 52 #- git submodule foreach "git reset --quiet --hard" 53 #- git submodule foreach "git clean -fxd" 54 - git reset --hard 55 - git clean -fxd 56 - git status 57 - rm -rf %BOOST%/libs/%BOOST_REMOVE% 58 - mv %APPVEYOR_BUILD_FOLDER% %BOOST%/libs/%PROJECT_TO_TEST% 59 - set TRAVIS_BUILD_DIR=%BOOST%/libs/%PROJECT_TO_TEST% 60 61build_script: 62 - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 63 - bootstrap.bat 64 - b2.exe headers 65 - cd %BOOST%/libs/%PROJECT_TO_TEST%/test 66 67after_build: 68before_test: 69test_script: 70 - ..\..\..\b2.exe address-model=64 architecture=x86 cxxflags="-DBOOST_TRAVISCI_BUILD" -sBOOST_BUILD_PATH=. --boost-process-report-ci 71 72after_test: 73on_success: 74on_failure: 75on_finish: 76 - curl -s https://report.ci/upload.py | python - --name "Windows test run" --root_dir=%BOOST% 77 78