mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Improve coverage collection
This commit is contained in:
parent
af49b04c19
commit
ee0a76eed5
1 changed files with 4 additions and 4 deletions
|
|
@ -87,14 +87,14 @@ after_success:
|
||||||
|
|
||||||
# Copying Coveralls data to a separate folder
|
# Copying Coveralls data to a separate folder
|
||||||
- mkdir -p $COVERALS_DIR
|
- mkdir -p $COVERALS_DIR
|
||||||
- find ../test/bin/ -name "*.gcda" -exec cp "{}" $COVERALS_DIR/ \;
|
- find $PROJECT_DIR/test/bin/ -name "*.gcda" -exec cp "{}" $COVERALS_DIR/ \;
|
||||||
- find ../test/bin/ -name "*.gcno" -exec cp "{}" $COVERALS_DIR/ \;
|
- find $PROJECT_DIR/test/bin/ -name "*.gcno" -exec cp "{}" $COVERALS_DIR/ \;
|
||||||
|
|
||||||
# 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
|
||||||
# ... changing data format to a readable one
|
# ... changing data format to a readable one
|
||||||
- lcov --directory $COVERALS_DIR --base-directory /home/travis/build/mat007/turtle/test --capture --output-file $COVERALS_DIR/coverage.info
|
- lcov --directory $COVERALS_DIR --base-directory $PROJECT_DIR/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
|
||||||
|
|
@ -102,4 +102,4 @@ after_success:
|
||||||
# Sending data to Coveralls
|
# Sending data to Coveralls
|
||||||
- cd $PROJECT_DIR
|
- cd $PROJECT_DIR
|
||||||
- gem install coveralls-lcov
|
- gem install coveralls-lcov
|
||||||
- coveralls-lcov coverals/coverage.info
|
- coveralls-lcov $COVERALS_DIR/coverage.info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue