From 3a137fd752dfbcf7fe2a96e7085c982f5a868ac6 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 13 Apr 2018 12:40:01 -0400 Subject: [PATCH] Stop using pre-compiled wheels We actually want to ensure users are able to use our roles outside of openstack-infra. Since those users won't have wheel mirrors, disable our jobs from using them too. Change-Id: I219f8980c5e0ee18cfa80b64ae179156cff7ee2b Signed-off-by: Paul Belanger --- .zuul.yaml | 1 + tests/playbooks/pre.yaml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/playbooks/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml index f0e03ed..e701f3a 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,6 +1,7 @@ - job: name: ansible-role-zuul-base parent: unittests + pre-run: tests/playbooks/pre.yaml run: tests/playbooks/run.yaml post-run: tests/collect-logs.yaml roles: diff --git a/tests/playbooks/pre.yaml b/tests/playbooks/pre.yaml new file mode 100644 index 0000000..9d6bf92 --- /dev/null +++ b/tests/playbooks/pre.yaml @@ -0,0 +1,22 @@ +# Copyright 2018 Red Hat, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +--- +- hosts: all + tasks: + - name: Disable extra wheels mirror + become: yes + lineinfile: + dest: /etc/pip.conf + regexp: ^extra-index-url + state: absent