Remove pbrx
The repository x/pbrx is getting retired. It was used to install all siblings. Rework to install all repos that are setup directly. Change-Id: I5229e49736e085e8148570bc4b9e9b2911553778
This commit is contained in:
parent
e0fa40ff61
commit
990b4825b2
|
@ -6,7 +6,6 @@
|
|||
timeout: 1800
|
||||
required-projects:
|
||||
- openstack/openstackclient
|
||||
- x/pbrx
|
||||
- openstack/python-openstackclient
|
||||
- openstack/python-barbicanclient
|
||||
- openstack/python-cloudkittyclient
|
||||
|
|
|
@ -2,15 +2,44 @@
|
|||
name: Run openstackclient plugin check
|
||||
tasks:
|
||||
|
||||
- shell:
|
||||
- name: Setup virtualenv, install openstackclient, get requirements
|
||||
shell:
|
||||
cmd: |
|
||||
echo "------------------------------------------------------------"
|
||||
virtualenv -p $(which python3) osc_plugins
|
||||
osc_plugins/bin/pip install -e ../../x/pbrx
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pip install -c ../requirements/upper-constraints.txt -r requirements.txt
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pbrx install-siblings -c ../requirements/upper-constraints.txt $(find ../.. -mindepth 2 -maxdepth 2)
|
||||
cp ../requirements/upper-constraints.txt .
|
||||
chdir: /home/zuul/src/opendev.org/openstack/openstackclient
|
||||
|
||||
- name: Remove packages from upper-constraints
|
||||
lineinfile:
|
||||
dest=/home/zuul/src/opendev.org/openstack/openstackclient/upper-constraints.txt
|
||||
state=absent
|
||||
regexp='^{{ item.short_name }}.*$'
|
||||
with_items: "{{ zuul.projects.values() | list }}"
|
||||
when:
|
||||
- item.name != "openstack/requirements"
|
||||
- item.name != "openstack/openstackclient"
|
||||
|
||||
- name: Install repos that are in requirements.txt
|
||||
shell:
|
||||
cmd: |
|
||||
grep item.short_name requirements.txt
|
||||
if [ $? -eq 0 ] ; then
|
||||
osc_plugins/bin/pip install -c upper-constraints.txt -e {{ ansible_user_dir }}/{{ item.src_dir }}
|
||||
fi
|
||||
args:
|
||||
chdir: /home/zuul/src/opendev.org/openstack/openstackclient
|
||||
with_items: "{{ zuul.projects.values() | list }}"
|
||||
when:
|
||||
- item.name != "openstack/requirements"
|
||||
- item.name != "openstack/openstackclient"
|
||||
|
||||
- name: Run check_osc_commands
|
||||
shell:
|
||||
cmd: |
|
||||
echo "------------------------------------------------------------"
|
||||
osc_plugins/bin/pbr freeze
|
||||
echo "------------------------------------------------------------"
|
||||
|
|
Loading…
Reference in New Issue