-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: pkg: added coverage information and abilities.
- Loading branch information
Showing
7 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = True | ||
source = gitchangelog | ||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
if PY3: | ||
|
||
if not PY3: | ||
|
||
ignore_errors = True | ||
[html] | ||
directory = cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
language: python | ||
python: | ||
- "3.3" | ||
- "3.2" | ||
- "3.4" | ||
- "2.7" | ||
install: ./autogen.sh && python setup.py install && python setup.py develop easy_install gitchangelog[test] | ||
install: | ||
- ./autogen.sh && python setup.py install && python setup.py develop easy_install gitchangelog[test] | ||
- pip install coverage coveralls | ||
script: | ||
- python -m unittest discover -fv -s test && python -m doctest gitchangelog.py | ||
- ./autogen.sh && python setup.py sdist --formats=gztar && pip install dist/gitchangelog-$(./autogen.sh --get-version | tr "_" "-").tar.gz --upgrade | ||
- git reset --hard HEAD ; git clean -d -f ; ./autogen.sh && python setup.py sdist --formats=gztar && pip install dist/gitchangelog-$(./autogen.sh --get-version | tr "_" "-").tar.gz --upgrade | ||
- nosetests . | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[nosetests] | ||
verbosity = 3 | ||
with-doctest = 1 | ||
doctest-extension = rst | ||
exe = 1 | ||
with-coverage = 1 | ||
cover-package = gitchangelog | ||
#cover-min-percentage = 90 | ||
doctest-options = +ELLIPSIS,+NORMALIZE_WHITESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ | |
'Mustache': ["pystache", ], | ||
'Mako': ["mako", ], | ||
'test': [ | ||
"nose", | ||
"minimock", | ||
"mako", | ||
"pystache", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters