Changes between Version 9 and Version 10 of TravisCoverals


Ignore:
Timestamp:
Jan 2, 2017, 10:12:59 AM (6 years ago)
Author:
Antony Polukhin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TravisCoverals

    v9 v10  
    7373
    7474
    75 === `.travis.yml` content (05.01.2016) ===
    76 {{{
    77 # Use, modification, and distribution are
     75=== `.travis.yml` content ===
     76{{{# Use, modification, and distribution are
    7877# subject to the Boost Software License, Version 1.0. (See accompanying
    7978# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     
    8584# and how it can be used with Boost libraries.
    8685#
    87 # File revision #6
     86# File revision #7
    8887
    8988sudo: false
     
    137136    - gcc-6
    138137    - g++-6
    139     - lcov
    140138    - clang
    141139    - libc++-dev
     
    166164    # `--coverage` flags required to generate coverage info for Coveralls
    167165    - ../../../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    
     166
    169167after_success:
    170168    # Copying Coveralls data to a separate folder
     
    172170    - find ../../../bin.v2/ -name "*.gcda" -exec cp "{}" $TRAVIS_BUILD_DIR/coverals/ \;
    173171    - find ../../../bin.v2/ -name "*.gcno" -exec cp "{}" $TRAVIS_BUILD_DIR/coverals/ \;
     172    - find ../../../bin.v2/ -name "*.da" -exec cp "{}" $TRAVIS_BUILD_DIR/coverals/ \;
     173    - find ../../../bin.v2/ -name "*.no" -exec cp "{}" $TRAVIS_BUILD_DIR/coverals/ \;
     174    - wget https://github.com/linux-test-project/lcov/archive/v1.12.zip
     175    - unzip v1.12.zip
     176    - LCOV="`pwd`/lcov-1.12/bin/lcov --gcov-tool gcov-6"
    174177
    175178    # Preparing Coveralls data by changind data format to a readable one
    176     - lcov --directory $TRAVIS_BUILD_DIR/coverals --base-directory ./ --capture --output-file $TRAVIS_BUILD_DIR/coverals/coverage.info
     179    - echo "$LCOV --directory $TRAVIS_BUILD_DIR/coverals --base-directory `pwd` --capture --output-file $TRAVIS_BUILD_DIR/coverals/coverage.info"
     180    - $LCOV --directory $TRAVIS_BUILD_DIR/coverals --base-directory `pwd` --capture --output-file $TRAVIS_BUILD_DIR/coverals/coverage.info
    177181
    178182    # ... erasing /test/ /example/ folder data
    179183    - cd $BOOST
    180     - lcov --remove $TRAVIS_BUILD_DIR/coverals/coverage.info "/usr*" "*/$PROJECT_TO_TEST/test/*" $IGNORE_COVERAGE "*/$PROJECT_TO_TEST/tests/*" "*/$PROJECT_TO_TEST/examples/*" "*/$PROJECT_TO_TEST/example/*" -o $TRAVIS_BUILD_DIR/coverals/coverage.info
     184    - $LCOV --remove $TRAVIS_BUILD_DIR/coverals/coverage.info "/usr*" "*/$PROJECT_TO_TEST/test/*" $IGNORE_COVERAGE "*/$PROJECT_TO_TEST/tests/*" "*/$PROJECT_TO_TEST/examples/*" "*/$PROJECT_TO_TEST/example/*" -o $TRAVIS_BUILD_DIR/coverals/coverage.info
    181185
    182186    # ... erasing data that is not related to this project directly
    183187    - OTHER_LIBS=`grep "submodule .*" .gitmodules | sed 's/\[submodule\ "\(.*\)"\]/"\*\/boost\/\1\.hpp" "\*\/boost\/\1\/\*"/g'| sed "/\"\*\/boost\/$PROJECT_TO_TEST\/\*\"/d" | sed ':a;N;$!ba;s/\n/ /g'`
    184188    - echo $OTHER_LIBS
    185     - eval "lcov --remove $TRAVIS_BUILD_DIR/coverals/coverage.info $OTHER_LIBS -o $TRAVIS_BUILD_DIR/coverals/coverage.info"
     189    - eval "$LCOV --remove $TRAVIS_BUILD_DIR/coverals/coverage.info $OTHER_LIBS -o $TRAVIS_BUILD_DIR/coverals/coverage.info"
    186190
    187191    # Sending data to Coveralls