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

report coverage

parent 24301911
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,4 @@ exclude_paths:
- tests/**
ratings:
paths:
- minijson/**
- minijson.pyx
[run]
omit=setup.py
omit=
setup.py
docs/*
plugins = Cython.Coverage
*.sh eol=lf
FROM smokserwis/build:python3
RUN pip install snakehouse Cython satella pytest coverage pytest-cov
RUN pip install Cython pytest coverage pytest-cov
ENV DEBUG=1
WORKDIR /tmp/compile
ADD . /tmp/compile/
RUN python setup.py install
RUN python setup.py install && \
chmod ugo+x /tmp/compile/tests/test.sh
CMD ["pytest", "--cov=./", "--cov-report=xml"]
CMD ["/tmp/compile/tests/test.sh"]
......@@ -12,6 +12,7 @@ macros = []
if 'DEBUG' in os.environ:
print('Enabling debug mode')
directive_defaults['linetrace'] = True
directive_defaults['profiling'] = True
directive_defaults['binding'] = True
macros = [('CYTHON_TRACE', '1')]
......@@ -21,5 +22,4 @@ extensions = [Extension("minijson", ["minijson.pyx"],
setup(version='1.7',
ext_modules=cythonize(extensions),
python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*',
)
#!/bin/bash
pytest --cov=./ --cov-report=xml
coverage report
[coverage]
always-on = True
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