From 6b2afef276625ecba78400da442984c685cb7a75 Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Fri, 5 May 2017 07:24:46 +0100 Subject: [PATCH 1/2] Add coveralls support --- Dockerfile-py2.7 | 6 +++++- README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile-py2.7 b/Dockerfile-py2.7 index b937c3f9..69662cae 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,5 @@ ENTRYPOINT cp -r /Qt.py /workspace && \ --with-doctest \ --exe \ examples/*/*.py && \ + 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 From 59a8dceba879ed5a32ee4a247759ccf5e4760422 Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Fri, 5 May 2017 08:16:28 +0100 Subject: [PATCH 2/2] Repair coveralls --- .travis.yml | 2 +- Dockerfile-py2.7 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 69662cae..0f62def1 100644 --- a/Dockerfile-py2.7 +++ b/Dockerfile-py2.7 @@ -63,5 +63,6 @@ ENTRYPOINT cp -r /Qt.py /workspace && \ --with-doctest \ --exe \ examples/*/*.py && \ - coveralls && \ + echo "Uploading results to Coveralls.io.." && \ + coveralls && \ echo Done