Skip to content

Commit

Permalink
Merge pull request #1267 from white-gecko/feature/coverage-configuration
Browse files Browse the repository at this point in the history
Feature/coverage configuration
  • Loading branch information
white-gecko committed Mar 5, 2021
2 parents e366457 + cc0d8b4 commit 16b218b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 40 deletions.
36 changes: 0 additions & 36 deletions .coveragerc

This file was deleted.

9 changes: 6 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ steps:
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report

---
kind: pipeline
Expand All @@ -34,10 +35,11 @@ steps:
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report

---
kind: pipeline
Expand All @@ -54,7 +56,8 @@ steps:
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install
- flake8 --exit-zero rdflib
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ before_install:
install:
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
- pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1
- python setup.py install

before_script:
- flake8 --exit-zero rdflib

script:
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
- coverage report

after_success:
- if [[ $HAS_COVERALLS ]] ; then coveralls ; fi
Expand Down
2 changes: 2 additions & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sphinx
sphinxcontrib-apidoc
nose==1.3.7
nose-timer
coverage
flake8
doctest-ignore-unicode==0.1.2
16 changes: 16 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,19 @@ exclude=rdflib.plugins.sparql.paths|rdflib.extras.external_graph_libs
ignore = W806
max-line-length = 88
exclude = host,extras,transform,rdfs,pyRdfa,sparql,results,pyMicrodata

[coverage:run]
branch = True
#source = rdflib,build/src/rdflib # specified in .travis.yml for different envs
omit = */site-packages/*

[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
if __name__==.__main__.:

0 comments on commit 16b218b

Please sign in to comment.