Changes between Version 8 and Version 9 of TravisCoverals


Ignore:
Timestamp:
Nov 18, 2016, 9:32:55 PM (6 years ago)
Author:
Antony Polukhin
Comment:

Updated the TravisCI to use sanitizers

Legend:

Unmodified
Added
Removed
Modified
  • TravisCoverals

    v8 v9  
    7979# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    8080#
    81 # Copyright Antony Polukhin 2014-2015.
     81# Copyright Antony Polukhin 2014-2016.
    8282
    8383#
     
    8585# and how it can be used with Boost libraries.
    8686#
    87 # File revision #5
     87# File revision #6
    8888
    8989sudo: false
     
    114114
    115115    matrix:
    116         - CXX_STANDARD=c++98
    117         - CXX_STANDARD=c++0x
     116        # Note that "--coverage -fsanitize=address,leak,undefined -DBOOST_TRAVISCI_BUILD" are added automatically lower in code
     117        - CXX_FLAGS="-std=c++98" LINK_FLAGS="" TOOLSET=gcc-6
     118        - CXX_FLAGS="-std=c++11" LINK_FLAGS="" TOOLSET=gcc-6
     119        - CXX_FLAGS="-std=c++1y" LINK_FLAGS="" TOOLSET=gcc-6
     120        #- CXX_FLAGS="-std=c++11 -stdlib=libc++" LINK_FLAGS="-stdlib=libc++" TOOLSET=clang
     121        #- CXX_FLAGS="-std=c++1y -stdlib=libc++" LINK_FLAGS="-stdlib=libc++" TOOLSET=clang
    118122
    119123###############################################################################################################
     
    125129addons:
    126130  apt:
     131    sources:
     132    - ubuntu-toolchain-r-test
     133    - git-core
    127134    packages:
    128     - valgrind
     135    - git
    129136    - python-yaml
     137    - gcc-6
     138    - g++-6
    130139    - lcov
     140    - clang
     141    - libc++-dev
    131142
    132143before_install:
     
    141152    - git fetch --depth=1
    142153    - git checkout $BRANCH_TO_TEST
    143     - git submodule update --init --merge
     154    - git submodule update --jobs=3 --init --merge
    144155    - git remote set-branches --add origin $BRANCH_TO_TEST
    145156    - git pull --recurse-submodules
    146     - git submodule update --init
    147     - git checkout $BRANCH_TO_TEST
    148     - git submodule foreach "git reset --quiet --hard; git clean -fxd"
    149     - git reset --hard; git clean -fxd
    150157    - git status
    151158    - rm -rf $BOOST/libs/$BOOST_REMOVE
     
    158165script:
    159166    # `--coverage` flags required to generate coverage info for Coveralls
    160     - ../../../b2 testing.launcher=valgrind address-model=64 architecture=x86 toolset=$CC cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags="--coverage"
    161 
     167    - ../../../b2 "testing.launcher=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.3 " address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -fsanitize=address,leak,undefined -DBOOST_TRAVISCI_BUILD $CXX_FLAGS" linkflags="$LINK_FLAGS --coverage -lasan -lubsan"
     168   
    162169after_success:
    163170    # Copying Coveralls data to a separate folder