Merge pull request #2 from petrblaho/setup-testing-env
Setup testing environment including TravisCI
This commit is contained in:
commit
7b44a7a693
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,9 +4,13 @@
|
||||
*~
|
||||
|
||||
/*.egg-info
|
||||
/*.egg
|
||||
|
||||
/.testrepository
|
||||
/.tox
|
||||
/.venv
|
||||
/AUTHORS
|
||||
/ChangeLog
|
||||
|
||||
.coverage
|
||||
/cover
|
||||
|
8
.travis.yml
Normal file
8
.travis.yml
Normal 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
|
@ -0,0 +1,2 @@
|
||||
.. image:: https://travis-ci.org/jistr/python-tuskarclient.png?branch=master
|
||||
:target: http://travis-ci.org/jistr/python-tuskarclient
|
5
tox.ini
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user