Changes between Version 9 and Version 10 of TravisCoverals
- Timestamp:
- Jan 2, 2017, 10:12:59 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TravisCoverals
v9 v10 73 73 74 74 75 === `.travis.yml` content (05.01.2016) === 76 {{{ 77 # Use, modification, and distribution are 75 === `.travis.yml` content === 76 {{{# Use, modification, and distribution are 78 77 # subject to the Boost Software License, Version 1.0. (See accompanying 79 78 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) … … 85 84 # and how it can be used with Boost libraries. 86 85 # 87 # File revision # 686 # File revision #7 88 87 89 88 sudo: false … … 137 136 - gcc-6 138 137 - g++-6 139 - lcov140 138 - clang 141 139 - libc++-dev … … 166 164 # `--coverage` flags required to generate coverage info for Coveralls 167 165 - ../../../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 169 167 after_success: 170 168 # Copying Coveralls data to a separate folder … … 172 170 - find ../../../bin.v2/ -name "*.gcda" -exec cp "{}" $TRAVIS_BUILD_DIR/coverals/ \; 173 171 - 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" 174 177 175 178 # 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 177 181 178 182 # ... erasing /test/ /example/ folder data 179 183 - 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.info184 - $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 181 185 182 186 # ... erasing data that is not related to this project directly 183 187 - 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'` 184 188 - 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" 186 190 187 191 # Sending data to Coveralls