Merge pull request #1267 from white-gecko/feature/coverage-configuration · RDFLib/rdflib@16b218b (original) (raw)
5 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -14,10 +14,11 @@ steps: | ||
14 | 14 | - bash .travis.fuseki_install_optional.sh |
15 | 15 | - pip install --default-timeout 60 -r requirements.txt |
16 | 16 | - pip install --default-timeout 60 -r requirements.dev.txt |
17 | - - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1 | |
17 | + - pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1 | |
18 | 18 | - python setup.py install |
19 | 19 | - flake8 --exit-zero rdflib |
20 | 20 | - PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib |
21 | + - coverage report | |
21 | 22 | |
22 | 23 | --- |
23 | 24 | kind: pipeline |
@@ -34,10 +35,11 @@ steps: | ||
34 | 35 | - bash .travis.fuseki_install_optional.sh |
35 | 36 | - pip install --default-timeout 60 -r requirements.txt |
36 | 37 | - pip install --default-timeout 60 -r requirements.dev.txt |
37 | - - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1 | |
38 | + - pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1 | |
38 | 39 | - python setup.py install |
39 | 40 | - flake8 --exit-zero rdflib |
40 | 41 | - PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib |
42 | + - coverage report | |
41 | 43 | |
42 | 44 | --- |
43 | 45 | kind: pipeline |
@@ -54,7 +56,8 @@ steps: | ||
54 | 56 | - bash .travis.fuseki_install_optional.sh |
55 | 57 | - pip install --default-timeout 60 -r requirements.txt |
56 | 58 | - pip install --default-timeout 60 -r requirements.dev.txt |
57 | - - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1 | |
59 | + - pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1 | |
58 | 60 | - python setup.py install |
59 | 61 | - flake8 --exit-zero rdflib |
60 | 62 | - PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib |
63 | + - coverage report |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -29,14 +29,15 @@ before_install: | ||
29 | 29 | install: |
30 | 30 | - pip install --default-timeout 60 -r requirements.txt |
31 | 31 | - pip install --default-timeout 60 -r requirements.dev.txt |
32 | - - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1 | |
32 | + - pip install --default-timeout 60 coveralls && export HAS_COVERALLS=1 | |
33 | 33 | - python setup.py install |
34 | 34 | |
35 | 35 | before_script: |
36 | 36 | - flake8 --exit-zero rdflib |
37 | 37 | |
38 | 38 | script: |
39 | 39 | - PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib |
40 | + - coverage report | |
40 | 41 | |
41 | 42 | after_success: |
42 | 43 | - if [[ $HAS_COVERALLS ]] ; then coveralls ; fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
1 | 1 | sphinx |
2 | 2 | sphinxcontrib-apidoc |
3 | 3 | nose==1.3.7 |
4 | +nose-timer | |
5 | +coverage | |
4 | 6 | flake8 |
5 | 7 | doctest-ignore-unicode==0.1.2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -11,3 +11,19 @@ exclude=rdflib.plugins.sparql.paths|rdflib.extras.external_graph_libs | ||
11 | 11 | ignore = W806 |
12 | 12 | max-line-length = 88 |
13 | 13 | exclude = host,extras,transform,rdfs,pyRdfa,sparql,results,pyMicrodata |
14 | + | |
15 | +[coverage:run] | |
16 | +branch = True | |
17 | +#source = rdflib,build/src/rdflib # specified in .travis.yml for different envs | |
18 | +omit = */site-packages/* | |
19 | + | |
20 | +[coverage:report] | |
21 | +# Regexes for lines to exclude from consideration | |
22 | +exclude_lines = | |
23 | +# Have to re-enable the standard pragma | |
24 | + pragma: no cover | |
25 | + | |
26 | +# Don't complain if non-runnable code isn't run: | |
27 | + if 0: | |
28 | + if __name__ == .__main__.: | |
29 | + if __name__==.__main__.: |