From 4dfdb6282b5581449956216ee9d4829341c20c21 Mon Sep 17 00:00:00 2001 From: Ammar Askar Date: Fri, 3 Apr 2015 03:53:13 +0500 Subject: [PATCH] coveralls support --- .travis.yml | 5 +++++ README.rst | 1 + bin/generate_travis_yml.py | 21 +++++++++++++-------- tox.ini | 4 ++-- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 609ea06..1043431 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,10 @@ env: - TOX_ENV=verify-manifest install: - pip install tox + - pip install python-coveralls script: - tox -e $TOX_ENV +after_success: + - coveralls +notifications: + email: false diff --git a/README.rst b/README.rst index 942cd2a..c0ded4f 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,7 @@ pyCraft ======= .. image:: https://travis-ci.org/ammaraskar/pyCraft.svg + :target: https://travis-ci.org/ammaraskar/pyCraft Minecraft Python Client Library! diff --git a/bin/generate_travis_yml.py b/bin/generate_travis_yml.py index 7a3c682..ada5ae9 100644 --- a/bin/generate_travis_yml.py +++ b/bin/generate_travis_yml.py @@ -3,12 +3,17 @@ os.chdir("..") from tox._config import parseconfig -print "language: python" -print "python: 2.7" -print "env:" +print("language: python") +print("python: 2.7") +print("env:") for env in parseconfig(None, 'tox').envlist: - print " - TOX_ENV=%s" % env -print "install:" -print " - pip install tox" -print "script:" -print " - tox -e $TOX_ENV" \ No newline at end of file + print(" - TOX_ENV=%s" % env) +print("install:") +print(" - pip install tox") +print(" - pip install python-coveralls") +print("script:") +print(" - tox -e $TOX_ENV") +print("after_success:") +print(" - coveralls") +print("notifications:") +print(" email: false") \ No newline at end of file diff --git a/tox.ini b/tox.ini index 244b8f5..c09f72c 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ deps = [testenv:cover] basepython = python3.4 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 = {[testenv]deps} coverage @@ -53,7 +53,7 @@ basepython = python3.4 deps = {[testenv]deps} 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] basepython = python3.4