Skip to content
Snippets Groups Projects
Commit 1859e865 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Exclude directories from coverage reports

parent d091b652
No related branches found
No related tags found
No related merge requests found
...@@ -41,5 +41,5 @@ after_test: ...@@ -41,5 +41,5 @@ after_test:
# Install & run codecov # Install & run codecov
- "%PYTHON%\\python -m pip install codecov" - "%PYTHON%\\python -m pip install codecov"
- "SET PATH=%PYTHON%\\Scripts\\;%PATH%" - "SET PATH=%PYTHON%\\Scripts\\;%PATH%"
- "coverage combine ./ ./scapy/tools/" - "coverage combine ./"
- codecov - codecov
[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 ...@@ -53,5 +53,5 @@ script: bash .travis/test.sh
after_success: after_success:
- if [ "$SCAPY_COVERAGE" = "yes" ]; then pip install codecov; fi - if [ "$SCAPY_COVERAGE" = "yes" ]; then pip install codecov; fi
# With UTScapy, the coverage dot file is located in the test directory # 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 - if [ "$SCAPY_COVERAGE" = "yes" ]; then codecov; fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment