Update openstackclient-check-plugins to honor constraints
Congratulations! You're the first customer of our fine new command pbrx install-siblings!!! Srrsly though - the job doesn't currently honor upper-constraints, but doing that is, it turns out, hard when you're also trying to honor required-projects. The logic that handles doing that for tox jobs got extracted into a tool. Use that tool here to install the code from the required-projects repos - and pass in the constraints file so that constraints are applied appropriately. Depends-On: https://review.openstack.org/589476 Change-Id: Ic29d2c1bb15479bd0852b74b5d08aac7ef90048e
This commit is contained in:
parent
aebbade4fd
commit
530e586626
|
@ -6,6 +6,7 @@
|
|||
timeout: 1800
|
||||
required-projects:
|
||||
- openstack/openstackclient
|
||||
- openstack/pbrx
|
||||
- openstack/python-openstackclient
|
||||
- openstack/python-barbicanclient
|
||||
- openstack/python-cloudkittyclient
|
||||
|
@ -29,6 +30,7 @@
|
|||
- openstack/python-vitrageclient
|
||||
- openstack/python-watcherclient
|
||||
- openstack/python-zaqarclient
|
||||
- openstack/requirements
|
||||
|
||||
- project-template:
|
||||
name: openstackclient-plugin-jobs
|
||||
|
|
|
@ -6,18 +6,14 @@
|
|||
cmd: |
|
||||
echo "------------------------------------------------------------"
|
||||
virtualenv osc_plugins
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
osc_plugins/bin/pip install -e ../pbrx
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pip install -e src/{{ item.key }}
|
||||
when: item.value.required
|
||||
with_dict: "{{ zuul.projects }}"
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
osc_plugins/bin/pip install -c ../requirements/upper-constraints.txt -r requirements.txt
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pip freeze
|
||||
osc_plugins/bin/pbrx install-siblings -c ../requirements/upper-constraints.txt $(find ../.. -mindepth 2 -maxdepth 2)
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pbr freeze
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/openstack --version
|
||||
osc_plugins/bin/python src/git.openstack.org/openstack/openstackclient/tests/check_osc_commands.py
|
||||
osc_plugins/bin/python tests/check_osc_commands.py
|
||||
chdir: /home/zuul/src/git.openstack.org/openstack/openstackclient
|
||||
|
|
Loading…
Reference in New Issue