3ac73d21cb
To test checkbuild in tox, git operations are unnecessary. And this enables to run checkbuild in anywhere. Change-Id: Ida41de8adba66096d3d5ede1d6a2f71af73fe142
27 lines
602 B
INI
27 lines
602 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = checkbuild
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python2.7
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:checkbuild]
|
|
setenv =
|
|
IGNORE_GIT=1
|
|
commands =
|
|
rm -rf {envdir}/cafe-ui
|
|
cookiecutter --no-input --output-dir {envdir} {toxinidir}
|
|
flake8 {envdir}/cafe-ui
|
|
whitelist_externals =
|
|
rm
|