Exclude directories from coverage reports

This commit is contained in:
Guillaume Valadon 2017-04-12 13:16:50 +02:00
parent d091b65289
commit 1859e865f2
3 changed files with 10 additions and 2 deletions

View File

@ -41,5 +41,5 @@ after_test:
# Install & run codecov
- "%PYTHON%\\python -m pip install codecov"
- "SET PATH=%PYTHON%\\Scripts\\;%PATH%"
- "coverage combine ./ ./scapy/tools/"
- "coverage combine ./"
- codecov

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[run]
omit =
# Python specific path
/usr/local/lib/python2.7/*
# Scapy specific paths
test/*
bin/*
scapy/tools/*

View File

@ -53,5 +53,5 @@ script: bash .travis/test.sh
after_success:
- if [ "$SCAPY_COVERAGE" = "yes" ]; then pip install codecov; fi
# With UTScapy, the coverage dot file is located in the test directory
- if [ "$SCAPY_COVERAGE" = "yes" ]; then cd test; coverage combine; fi
- if [ "$SCAPY_COVERAGE" = "yes" ]; then coverage combine ./test; fi
- if [ "$SCAPY_COVERAGE" = "yes" ]; then codecov; fi