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 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 diff --git a/README.rst b/README.rst index e69de29..7a446e3 100644 --- a/README.rst +++ b/README.rst @@ -0,0 +1,2 @@ +.. image:: https://travis-ci.org/jistr/python-tuskarclient.png?branch=master + :target: http://travis-ci.org/jistr/python-tuskarclient diff --git a/tox.ini b/tox.ini index b035bb7..cc9010c 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} @@ -18,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