Browse Source

tox: use requirements-dev.txt instead of Pipfile

Since setup.py needs requirements.txt because it does not support
pipenv yet, use the requirements-dev.txt file for tox because it
is faster than pipenv.
keep-around/f4321d284bdd9b722051d537e4ec14e0ce6d36ac
Loïc Dachary 11 months ago
parent
commit
56b93606e6
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 2
      tests/tox.dockerfile
  2. 5
      tox.ini

2
tests/tox.dockerfile

@ -1,5 +1,5 @@
RUN pip install python-openstackclient python-heatclient # this is not necessary to run tests but to cleanup leftovers when tests fail
RUN pip install tox
RUN git init
COPY Pipfile Pipfile.lock tox.ini setup.cfg setup.py README.md /opt/
COPY requirements.txt requirements-dev.txt tox.ini setup.cfg setup.py README.md /opt/
RUN tox --notest

5
tox.ini

@ -12,8 +12,9 @@ passenv =
allowlist_externals = env
usedevelop = True
install_command = pip install {opts} {packages}
deps = pipenv
commands_pre = env PIPENV_VERBOSITY=-1 pipenv install --ignore-pipfile --dev
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = coverage run --source=enough {envbindir}/py.test -vvv --durations 10 {posargs:tests}
coverage report --omit=*test*,*tox* --show-missing

Loading…
Cancel
Save