mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
Add tox support.
This commit is contained in:
parent
08a4935566
commit
42c9af528f
5 changed files with 29 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,7 +1,11 @@
|
|||
budget/budget.db
|
||||
budget.db
|
||||
budget/memory
|
||||
budget/settings.py
|
||||
*.pyc
|
||||
*.egg-info
|
||||
dist
|
||||
.venv
|
||||
docs/_build/
|
||||
.tox
|
||||
dist
|
||||
|
|
2
Makefile
2
Makefile
|
@ -27,7 +27,7 @@ serve: $(INSTALL_STAMP)
|
|||
cd budget; ../$(PYTHON) run.py
|
||||
|
||||
test: $(DEV_STAMP)
|
||||
cd budget; ../$(PYTHON) tests.py
|
||||
$(VENV)/bin/tox
|
||||
|
||||
release: $(DEV_STAMP)
|
||||
$(VENV)/bin/fullrelease
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
zest.releaser
|
||||
tox
|
||||
|
|
3
docs/requirements.txt
Normal file
3
docs/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
docutils<0.13
|
||||
Sphinx
|
||||
sphinx_rtd_theme
|
20
tox.ini
Normal file
20
tox.ini
Normal 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
|
Loading…
Reference in a new issue