From 59493943d575144f522299c4fe5465ad21f35891 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:08:43 +0200 Subject: [PATCH 1/6] Updates .gitignore with coverage and *.egg --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 45f1dc9..f1629ff 100644 --- a/.gitignore +++ b/.gitignore @@ -4,9 +4,13 @@ *~ /*.egg-info +/*.egg /.testrepository /.tox /.venv /AUTHORS /ChangeLog + +.coverage +/cover From b8daf9441a9f002f5d6fdf0bca66d08970611c12 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:11:00 +0200 Subject: [PATCH 2/6] Modifies envlist in tox.ini Removes py26 and py33 - we are not using them at the moment Adds cover env to run tests with coverage report --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b035bb7..c2e87b0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,6 @@ [tox] -envlist = py26,py27,py33,pep8 +#envlist = py26,py27,py33,pep8,cover +envlist = py27,pep8,cover [testenv] setenv = VIRTUAL_ENV={envdir} From cd50bc5be75c59ac5ad25ec42d7cec8584a7ea59 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:12:23 +0200 Subject: [PATCH 3/6] Omits tests dir in coverage command in tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c2e87b0..cc9010c 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py testr --coverage --omit='tuskarclient/tests/*' --testr-args='{posargs}' [tox:jenkins] downloadcache = ~/cache/pip From 9592553dfad4a9e763327173a820b87ab7b8079b Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:15:11 +0200 Subject: [PATCH 4/6] Adds TravisCI config file --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c48ffd4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: python +python: + - 2.7 +install: + - pip install -q -r requirements.txt --use-mirrors + - pip install -q -r test-requirements.txt --use-mirrors +script: + - python setup.py testr From bec807c8f4cb78702d43177129773f68798b1cf5 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:24:48 +0200 Subject: [PATCH 5/6] Adds TravisCI badge to README.rst --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index e69de29..7f3059a 100644 --- a/README.rst +++ b/README.rst @@ -0,0 +1,2 @@ +.. image:: https://travis-ci.org/petrblaho/python-tuskarclient.png?branch=master + :target: http://travis-ci.org/petrblaho/python-tuskarclient From 0f0538a42cb5d5a4f00ae40a79422eedcb37fa3b Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 3 Jul 2013 18:37:25 +0200 Subject: [PATCH 6/6] Changes url to TravisCI badge to jistr --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 7f3059a..7a446e3 100644 --- a/README.rst +++ b/README.rst @@ -1,2 +1,2 @@ -.. image:: https://travis-ci.org/petrblaho/python-tuskarclient.png?branch=master - :target: http://travis-ci.org/petrblaho/python-tuskarclient +.. image:: https://travis-ci.org/jistr/python-tuskarclient.png?branch=master + :target: http://travis-ci.org/jistr/python-tuskarclient