Fix propose-project-config-update

After the recent change, the job now fails since ruamel.yaml is not
installed. Change the job to use tox to install dependency.

This creates a new tox environment that is then called from the proposal
script.

Failure log:
http://logs.openstack.org/periodic/git.openstack.org/openstack-infra/project-config/master/propose-project-config-update/bf68ac6/

Change-Id: I02ce33f10d388531806380f464dacc5617c74f1f
This commit is contained in:
Andreas Jaeger 2019-04-11 08:56:08 +02:00
parent 489c09ce30
commit c0972b00b0
2 changed files with 7 additions and 1 deletions

View File

@ -52,7 +52,7 @@ else
fi
git review -s
python tools/normalize_projects_yaml.py
tox -e normalize-projects-yaml
if ! git diff --stat --exit-code HEAD ; then
# Commit and review

View File

@ -133,3 +133,9 @@ deps =
commands =
python tools/add-projects-to-main.py
git diff-files --quiet
[testenv:normalize-projects-yaml]
deps =
ruamel.yaml
commands =
{toxinidir}/tools/normalize_projects_yaml.py