Add tox support.

This commit is contained in:
Alexis Métaireau 2017-03-21 17:09:53 +01:00
parent 08a4935566
commit 42c9af528f
5 changed files with 29 additions and 1 deletions

4
.gitignore vendored
View file

@ -1,7 +1,11 @@
budget/budget.db budget/budget.db
budget.db
budget/memory budget/memory
budget/settings.py budget/settings.py
*.pyc *.pyc
*.egg-info *.egg-info
dist dist
.venv .venv
docs/_build/
.tox
dist

View file

@ -27,7 +27,7 @@ serve: $(INSTALL_STAMP)
cd budget; ../$(PYTHON) run.py cd budget; ../$(PYTHON) run.py
test: $(DEV_STAMP) test: $(DEV_STAMP)
cd budget; ../$(PYTHON) tests.py $(VENV)/bin/tox
release: $(DEV_STAMP) release: $(DEV_STAMP)
$(VENV)/bin/fullrelease $(VENV)/bin/fullrelease

View file

@ -1 +1,2 @@
zest.releaser zest.releaser
tox

3
docs/requirements.txt Normal file
View file

@ -0,0 +1,3 @@
docutils<0.13
Sphinx
sphinx_rtd_theme

20
tox.ini Normal file
View file

@ -0,0 +1,20 @@
[tox]
envlist = py35,py27,docs
skip_missing_interpreters = True
[testenv]
passenv = TRAVIS
commands =
python --version
python budget/tests.py
deps =
-rdev-requirements.txt
-rrequirements.txt
install_command = pip install --pre {opts} {packages}
[testenv:docs]
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
-rdocs/requirements.txt