ihatemoney/tox.ini
JocelynDelalande 2019b398f1 manage commands testing (#313)
* Rename manage.ConfigTemplate → manage.GenerateConfig

To be consistent with the CLI name: `generate-config`.

* Add tests for manage.py commands

* Run tests from pip-installed package

To be able to detect packaging-related issues on test runs.

refs #305
2018-01-07 00:27:42 +01:00

44 lines
787 B
INI

[tox]
envlist = py36,py35,py34,py27,docs,lint
skip_missing_interpreters = True
[testenv]
commands =
python --version
py.test --pyargs ihatemoney.tests.tests
deps =
-rdev-requirements.txt
-rrequirements.txt
# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp
install_command =
pip install --pre {opts} {packages}
pip install .
[testenv:docs]
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
-rdocs/requirements.txt
changedir = {toxinidir}
[testenv:lint]
commands = flake8 ihatemoney
deps =
-rdev-requirements.txt
changedir = {toxinidir}
[flake8]
exclude = migrations
max_line_length = 100
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36, docs, lint