summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorengn33r <engn33r@users.noreply.github.com>2021-02-15 15:07:20 +0000
committerGitHub <noreply@github.com>2021-02-15 15:07:20 +0000
commit1a67acd6492d02df3f1555c51d9342880bddaf6b (patch)
treeeeacda968b363396e8dacb014fd442c908a43a9b
parent3112b7d75b1e5d65cb8fdfca7801606649044ed1 (diff)
downloadwebsocket-client-1a67acd6492d02df3f1555c51d9342880bddaf6b.tar.gz
Codecov CI integration (#663)
* Try codecov.io TravisCI integration with proper source & omit params * Fix path to test_websocket.py for coverage in travis.yml
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 1dc1824..acf227b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,9 +11,16 @@ python:
install:
- pip install -U pip setuptools wheel
+ - pip install -U coverage codecov
- if [ "${TRAVIS_PYTHON_VERSION:0:3}" == "3.4" ]; then pip install readme_renderer==24.0; else pip install -U readme_renderer; fi
- python -c "import setuptools; print(setuptools.__version__)"
script:
- TEST_WITH_INTERNET=1 python setup.py test
- python setup.py check -r -s
+
+after_success:
+ - coverage run --source=websocket --omit="/*/tests/__init__.py","*/tests/test_cookiejar.py","*/tests/test_websocket.py" websocket/tests/test_websocket.py
+ - coverage report
+ - coverage xml
+ - bash <(curl -s https://codecov.io/bash)