![Akihiro Motoki](/assets/img/avatar_default.png)
[Changes in zuul configurations] - playbooks/checkbuild/pre.yaml calls ensure-nodejs role, but the default nodejs version defined in ensure-nodejs role is still 6. nodejs6 repo is no longer available. This is the cause of the job failure. Let's specify nodejs_version used in horizon by default. - Ensure to install tox globally in the system. tox -e checkbuild calls "tox" as the test commands, so it needs to be installed globally. - Specify "python_version" so that zuul ensures to install a required version of python interpreter. [Changes in cookiecutter template] - hacking version in test-requirements.txt was too old. It is updated to use more recent version which horizon uses. - Update python version to 3.9 in tox.ini. - Install horizon and its dependencies separately. The constraints file contains horizon, so installing horizon along with the constraints file results in a version conflict error. Change-Id: If4bae3fde1f29eeb1d4d43942acc21ff2ef19482
34 lines
867 B
INI
34 lines
867 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = checkbuild
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:checkbuild]
|
|
basepython = python3
|
|
setenv =
|
|
IGNORE_GIT=1
|
|
commands =
|
|
rm -rf {envdir}/horizon
|
|
git clone https://opendev.org/openstack/horizon {envdir}/horizon
|
|
rm -rf {envdir}/cafe-ui
|
|
cookiecutter --no-input --output-dir {envdir} {toxinidir}
|
|
# To pass {postargs} for running `tox -edocs` in generated plugin,
|
|
# run `tox -- -edocs` in ui-cookiecutter.
|
|
tox -vv --workdir {envdir}/cafe-ui/.tox -c {envdir}/cafe-ui/tox.ini {posargs}
|
|
whitelist_externals =
|
|
git
|
|
rm
|
|
tox
|