Skip to content
Snippets Groups Projects
Commit adfa4108 authored by Pierre Lalet's avatar Pierre Lalet Committed by GitHub
Browse files

Merge pull request #604 from guedou/coverage_fix

[coverage] Fix codecov results
parents e61109d6 1859e865
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.
Please register or to comment