mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Merge pull request #4 from mat007/build-with-b2
FIxed cobertura analysis
This commit is contained in:
commit
3ca4f28cee
1 changed files with 2 additions and 7 deletions
|
|
@ -68,17 +68,12 @@ after_success:
|
||||||
# Preparing Coveralls data by
|
# Preparing Coveralls data by
|
||||||
# ... installing the tools
|
# ... installing the tools
|
||||||
- sudo apt-get install -qq python-yaml lcov
|
- sudo apt-get install -qq python-yaml lcov
|
||||||
# ... changind data format to a readable one
|
# ... changing data format to a readable one
|
||||||
- lcov --directory $COVERALS_DIR --base-directory ./ --capture --output-file $COVERALS_DIR/coverage.info
|
- lcov --directory $COVERALS_DIR --base-directory ./test --capture --output-file $COVERALS_DIR/coverage.info
|
||||||
|
|
||||||
# ... erasing /test/ /example/ folder data
|
# ... erasing /test/ /example/ folder data
|
||||||
- lcov --remove $COVERALS_DIR/coverage.info "/usr*" "/test/*" $IGNORE_COVERAGE "tests/*" "*/doc/examples/*" -o $COVERALS_DIR/coverage.info
|
- lcov --remove $COVERALS_DIR/coverage.info "/usr*" "/test/*" $IGNORE_COVERAGE "tests/*" "*/doc/examples/*" -o $COVERALS_DIR/coverage.info
|
||||||
|
|
||||||
# ... erasing data that is not related to this project directly
|
|
||||||
- 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'`
|
|
||||||
- echo $OTHER_LIBS
|
|
||||||
- eval "lcov --remove $COVERALS_DIR/coverage.info $OTHER_LIBS -o $COVERALS_DIR/coverage.info"
|
|
||||||
|
|
||||||
# Sending data to Coveralls
|
# Sending data to Coveralls
|
||||||
- cd $PROJECT_DIR
|
- cd $PROJECT_DIR
|
||||||
- gem install coveralls-lcov
|
- gem install coveralls-lcov
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue