mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Run tests from pip-installed package
To be able to detect packaging-related issues on test runs. refs #305
This commit is contained in:
parent
9bc1a3f09f
commit
34ea784851
1 changed files with 11 additions and 2 deletions
13
tox.ini
13
tox.ini
|
@ -6,22 +6,31 @@ skip_missing_interpreters = True
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
python --version
|
python --version
|
||||||
py.test ihatemoney/tests/tests.py
|
py.test --pyargs ihatemoney.tests.tests
|
||||||
|
|
||||||
deps =
|
deps =
|
||||||
-rdev-requirements.txt
|
-rdev-requirements.txt
|
||||||
-rrequirements.txt
|
-rrequirements.txt
|
||||||
|
|
||||||
install_command = pip install --pre {opts} {packages}
|
# 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]
|
[testenv:docs]
|
||||||
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
|
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
|
||||||
deps =
|
deps =
|
||||||
-rdocs/requirements.txt
|
-rdocs/requirements.txt
|
||||||
|
changedir = {toxinidir}
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
commands = flake8 ihatemoney
|
commands = flake8 ihatemoney
|
||||||
deps =
|
deps =
|
||||||
-rdev-requirements.txt
|
-rdev-requirements.txt
|
||||||
|
changedir = {toxinidir}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = migrations
|
exclude = migrations
|
||||||
|
|
Loading…
Reference in a new issue