Skip to content
Snippets Groups Projects
Commit 5697804c authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix coverage

parent 04bd766c
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,11 @@ python: ...@@ -8,6 +8,11 @@ python:
- "nightly" - "nightly"
- "pypy" - "pypy"
- "pypy3.5" - "pypy3.5"
cache: pip
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: script:
- python -m compile_definitions - python -m compile_definitions
- python setup.py test - python setup.py test
...@@ -16,9 +21,9 @@ install: ...@@ -16,9 +21,9 @@ install:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r stress_tests/requirements.txt - pip install -r stress_tests/requirements.txt
- pip install yapf - pip install yapf
- pip install --force-reinstall "coverage>=4.0,<4.4" codeclimate-test-reporter
after_success: after_success:
- codeclimate-test-reporter - coverage xml
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
- bash build.sh - bash build.sh
services: rabbitmq services: rabbitmq
addons: addons:
......
...@@ -12,7 +12,7 @@ setup(keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availabilit ...@@ -12,7 +12,7 @@ setup(keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availabilit
Also, handles your reconnects and transactionality THE RIGHT WAY, though somewhat opinionated''', Also, handles your reconnects and transactionality THE RIGHT WAY, though somewhat opinionated''',
install_requires=['six', 'monotonic', 'futures', 'typing'], install_requires=['six', 'monotonic', 'futures', 'typing'],
# per coverage version for codeclimate-reporter # per coverage version for codeclimate-reporter
tests_require=["nose2", "nose2[coverage_plugin]"], tests_require=["nose2", "coverage", "nose2[coverage_plugin]"],
test_suite='nose2.collector.collector' test_suite='nose2.collector.collector'
) )
......
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