diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5a53ac2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +sudo: false +notifications: + email: false +language: python +env: + - TOX_ENV=py26 + - TOX_ENV=py27 + - TOX_ENV=py33 + - TOX_ENV=py34 + - TOX_ENV=docs +install: + - pip install tox +script: + - tox -e $TOX_ENV +after_success: + - tox -e coveralls diff --git a/docs/_static/.gitkeep b/docs/_static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini index 8e55526..1be13db 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26, py27, py33, py34, docs, coverage +envlist = clean, py26, py27, py33, py34, docs, coverage [testenv] commands = @@ -8,6 +8,10 @@ deps = pytest mock +[testenv:clean] +deps = coverage +commands = coverage erase + [testenv:docs] basepython = python changedir = docs @@ -22,3 +26,14 @@ deps = commands = py.test --cov=ogre usedevelop = true + +[testenv:coveralls] +basepython = python +usedevelop = true +deps = + pytest-cov + coveralls + {[testenv]deps} +commands = + py.test --cov=ogre + coveralls