Merge pull request #2 from petrblaho/setup-testing-env

Setup testing environment including TravisCI
This commit is contained in:
Jiří Stránský 2013-07-04 01:43:03 -07:00
commit 7b44a7a693
4 changed files with 17 additions and 2 deletions

4
.gitignore vendored
View File

@ -4,9 +4,13 @@
*~
/*.egg-info
/*.egg
/.testrepository
/.tox
/.venv
/AUTHORS
/ChangeLog
.coverage
/cover

8
.travis.yml Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@
.. image:: https://travis-ci.org/jistr/python-tuskarclient.png?branch=master
:target: http://travis-ci.org/jistr/python-tuskarclient

View File

@ -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