mirror of https://github.com/secdev/scapy.git
Exclude directories from coverage reports
This commit is contained in:
parent
d091b65289
commit
1859e865f2
|
@ -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
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[run]
|
||||
omit =
|
||||
# Python specific path
|
||||
/usr/local/lib/python2.7/*
|
||||
# Scapy specific paths
|
||||
test/*
|
||||
bin/*
|
||||
scapy/tools/*
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue