Install dependencies when running tests etc. via tox

This commit is contained in:
Lance Edgar 2022-08-18 18:23:30 -05:00
parent 7d72a43ecd
commit 9566a882b5

View file

@ -6,21 +6,21 @@ envlist = py27, py35, py37
commands = commands =
pip install --upgrade pip pip install --upgrade pip
pip install --upgrade setuptools wheel pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager Tailbone rattail[auth,bouncer,db] rattail-tempmon pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[auth,bouncer,db] rattail-tempmon
pytest {posargs} pytest {posargs}
[testenv:py27] [testenv:py27]
commands = commands =
pip install --upgrade pip pip install --upgrade pip
pip install --upgrade setuptools wheel pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager Tailbone rattail[auth,bouncer,db] rattail-tempmon SQLAlchemy-Utils<0.36.7 SQLAlchemy-Continuum<1.3.12 pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[auth,bouncer,db] rattail-tempmon SQLAlchemy-Utils<0.36.7 SQLAlchemy-Continuum<1.3.12
pytest {posargs} pytest {posargs}
[testenv:coverage] [testenv:coverage]
basepython = python3 basepython = python3
commands = commands =
pip install --upgrade pip pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager Tailbone rattail[auth,bouncer,db] rattail-tempmon pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[auth,bouncer,db] rattail-tempmon
pytest --cov=tailbone --cov-report=html pytest --cov=tailbone --cov-report=html
[testenv:docs] [testenv:docs]
@ -28,5 +28,5 @@ basepython = python3
changedir = docs changedir = docs
commands = commands =
pip install --upgrade pip pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager Tailbone rattail[auth,bouncer,db] rattail-tempmon pip install --upgrade --upgrade-strategy eager Tailbone[docs] rattail[auth,bouncer,db] rattail-tempmon
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs