diff --git a/.travis.yml b/.travis.yml index f0ce100d..10cfbefe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: - docker build -f Dockerfile-py${TRAVIS_PYTHON_VERSION} -t mottosso/qt.py . script: - - docker run --rm -v $(pwd):/Qt.py mottosso/qt.py + - docker run --rm -v $(pwd):/Qt.py -e COVERALLS_REPO_TOKEN mottosso/qt.py deploy: provider: pypi diff --git a/Dockerfile-py2.7 b/Dockerfile-py2.7 index b937c3f9..0f62def1 100644 --- a/Dockerfile-py2.7 +++ b/Dockerfile-py2.7 @@ -22,7 +22,10 @@ RUN apt-get update && \ RUN cp -avr /usr/lib/python3/dist-packages/pyside2uic /usr/local/lib/python2.7/dist-packages # Nose is the Python test-runner -RUN pip install nose nosepipe +RUN pip install \ + nose \ + nosepipe \ + coveralls # Enable additional output from Qt.py ENV QT_VERBOSE true @@ -60,4 +63,6 @@ ENTRYPOINT cp -r /Qt.py /workspace && \ --with-doctest \ --exe \ examples/*/*.py && \ + echo "Uploading results to Coveralls.io.." && \ + coveralls && \ echo Done diff --git a/README.md b/README.md index ff8f6433..0d622c2a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/mottosso/Qt.py.svg?branch=master)](https://travis-ci.org/mottosso/Qt.py) [![PyPI version](https://badge.fury.io/py/Qt.py.svg)](https://pypi.python.org/pypi/Qt.py) +[![Build Status](https://travis-ci.org/mottosso/Qt.py.svg?branch=master)](https://travis-ci.org/mottosso/Qt.py) [![PyPI version](https://badge.fury.io/py/Qt.py.svg)](https://pypi.python.org/pypi/Qt.py) [![Coverage Status](https://coveralls.io/repos/github/mottosso/Qt.py/badge.svg?branch=master)](https://coveralls.io/github/mottosso/Qt.py?branch=master) ### Qt.py