coveralls support

This commit is contained in:
Ammar Askar 2015-04-03 03:53:13 +05:00
parent 515b0b3719
commit 4dfdb6282b
4 changed files with 21 additions and 10 deletions

View File

@ -12,5 +12,10 @@ env:
- TOX_ENV=verify-manifest - TOX_ENV=verify-manifest
install: install:
- pip install tox - pip install tox
- pip install python-coveralls
script: script:
- tox -e $TOX_ENV - tox -e $TOX_ENV
after_success:
- coveralls
notifications:
email: false

View File

@ -1,6 +1,7 @@
pyCraft pyCraft
======= =======
.. image:: https://travis-ci.org/ammaraskar/pyCraft.svg .. image:: https://travis-ci.org/ammaraskar/pyCraft.svg
:target: https://travis-ci.org/ammaraskar/pyCraft
Minecraft Python Client Library! Minecraft Python Client Library!

View File

@ -3,12 +3,17 @@ os.chdir("..")
from tox._config import parseconfig from tox._config import parseconfig
print "language: python" print("language: python")
print "python: 2.7" print("python: 2.7")
print "env:" print("env:")
for env in parseconfig(None, 'tox').envlist: for env in parseconfig(None, 'tox').envlist:
print " - TOX_ENV=%s" % env print(" - TOX_ENV=%s" % env)
print "install:" print("install:")
print " - pip install tox" print(" - pip install tox")
print "script:" print(" - pip install python-coveralls")
print " - tox -e $TOX_ENV" print("script:")
print(" - tox -e $TOX_ENV")
print("after_success:")
print(" - coveralls")
print("notifications:")
print(" email: false")

View File

@ -27,7 +27,7 @@ deps =
[testenv:cover] [testenv:cover]
basepython = python3.4 basepython = python3.4
commands = commands =
nosetests --with-xunit --with-xcoverage --cover-package=minecraft --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=60 - nosetests --with-xunit --with-xcoverage --cover-package=minecraft --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=60
deps = deps =
{[testenv]deps} {[testenv]deps}
coverage coverage
@ -53,7 +53,7 @@ basepython = python3.4
deps = deps =
{[testenv]deps} {[testenv]deps}
pylint pylint
commands = pylint minecraft -f colorized -d all -e W -r n commands = - pylint minecraft -f colorized -d all -e W -r n
[testenv:pylint-full] [testenv:pylint-full]
basepython = python3.4 basepython = python3.4