Changes between Version 12 and Version 13 of TravisCoverals


Ignore:
Timestamp:
Mar 11, 2017, 7:33:47 AM (6 years ago)
Author:
Antony Polukhin
Comment:

More Appveyor info

Legend:

Unmodified
Added
Removed
Modified
  • TravisCoverals

    v12 v13  
    7272
    7373=== Profits ====
    74 Travis is a continuous integration system that builds and run tests on each push to github repository. It helps you to find and report errors faster.
     74TravisCI and Appveyor are continuous integration systems that build and run tests on each push to github repository. TravisCI runs tests on Linux, Appveyor runs tests on Windows. They help you to find errors faster.
    7575
    7676Coveralls shows tests coverage. This is a useful feature, that allows you to make sure that newly created code is covered by tests. Even 100% coverage does not mean that there's no errors. However it motivates people to write tests, helps to find trivial errors and typos and sometimes even helps to find hard detectable errors ([https://github.com/boostorg/variant/commit/6db01d649441e0d16b386bd357a9141b8f3f3b17 bug that have been in Variant for years and was highlighted by Coveralls])
     
    199199    - coveralls-lcov coverals/coverage.info
    200200}}}
     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
     216init:
     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
     224version: 1.64.{build}-{branch}
     225 
     226# branches to build
     227branches:
     228  except:
     229    - gh-pages
     230
     231skip_tags: true
     232
     233before_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
     253build_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
     259after_build:
     260before_test:
     261test_script:
     262    - ..\..\..\b2.exe address-model=32 architecture=x86 toolset=msvc,gcc cxxflags="-DBOOST_TRAVISCI_BUILD" -sBOOST_BUILD_PATH=.
     263
     264after_test:
     265on_success:
     266on_failure:
     267on_finish:
     268}}}