Build improvements, use tox

This commit is contained in:
Carles Barrobés 2013-02-27 23:43:13 +00:00
parent 3f9462e5c1
commit 0603258270
3 changed files with 28 additions and 3 deletions

7
.gitignore vendored
View File

@ -1,8 +1,11 @@
*.orig
*.pyc
*.swp
build/
dist/
ddt.egg-info/
.coverage
cover/
_build/
/cover/
/docs/_build/
.tox
.ropeproject

View File

@ -1,4 +1,4 @@
#!/bin/bash
nosetests --with-coverage --cover-html
nosetests --with-coverage --cover-html --cover-package=ddt
flake8 ddt.py test || echo "Flake8 errors"
(cd docs; make html)

22
tox.ini Normal file
View File

@ -0,0 +1,22 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27, py32
[testenv]
deps =
nose
pep8
coverage
flake8
commands =
nosetests --with-coverage --cover-package=ddt --cover-html
flake8 ddt.py test
[testenv:py27]
deps =
{[testenv]deps}
Sphinx
commands =
nosetests --with-coverage --cover-package=ddt --cover-html
flake8 ddt.py test
sphinx-build -b html docs docs/_build