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

fix coverage

parent 6ea9b276
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,15 @@ before_script: ...@@ -5,13 +5,15 @@ before_script:
- chmod +x ./cc-test-reporter - chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build - ./cc-test-reporter before-build
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install nose2 mock coverage nose2[coverage_plugin] cython[coverage] - pip install pytest mock coverage cython[coverage] pytest-cov
- DEBUG=1 python setup.py install
- rm -rf minijson
jobs: jobs:
include: include:
- stage: test - stage: test
python: "3.8" python: "3.8"
script: script:
- DEBUG=1 python setup.py test - DEBUG=1 pytest --cov=minijson
after_script: after_script:
- coverage xml - coverage xml
- ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT} - ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT}
......
...@@ -31,9 +31,5 @@ setup(version='1.7', ...@@ -31,9 +31,5 @@ setup(version='1.7',
**multi_kwargs), ], **multi_kwargs), ],
compiler_directives=directives, **build_kwargs), compiler_directives=directives, **build_kwargs),
python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*', python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*',
tests_require=[
"nose2", "mock", "coverage", "nose2[coverage_plugin]"
],
test_suite='nose2.collector.collector',
zip_safe=False zip_safe=False
) )
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