Browse Source
This moves our testing in-tree for zuul. Change-Id: If91ba558bc9741341df689b3927cda916beebb5d Depends-On: https://review.openstack.org/623119/ Signed-off-by: Paul Belanger <pabelanger@redhat.com>changes/75/623075/3
7 changed files with 115 additions and 57 deletions
@ -0,0 +1,61 @@
|
||||
- job: |
||||
name: ansible-role-virtualenv-base |
||||
parent: unittests |
||||
pre-run: tests/playbooks/pre.yaml |
||||
run: tests/playbooks/run.yaml |
||||
roles: |
||||
- zuul: openstack/ansible-role-virtualenv |
||||
|
||||
# Testing for virtualenv_install_method: pip |
||||
- job: |
||||
name: ansible-role-virtualenv |
||||
parent: ansible-role-virtualenv-base |
||||
vars: |
||||
virtualenv_install_method: pip |
||||
|
||||
- job: |
||||
name: ansible-role-virtualenv-fedora-latest |
||||
parent: ansible-role-virtualenv |
||||
nodeset: fedora-latest |
||||
|
||||
- job: |
||||
name: ansible-role-virtualenv-ubuntu-bionic |
||||
parent: ansible-role-virtualenv |
||||
nodeset: ubuntu-bionic |
||||
|
||||
# Testing for virtualenv_install_method: git |
||||
- job: |
||||
name: ansible-role-virtualenv-src |
||||
parent: ansible-role-virtualenv-base |
||||
vars: |
||||
virtualenv_git_update: false |
||||
virtualenv_install_method: git |
||||
|
||||
- job: |
||||
name: ansible-role-virtualenv-src-fedora-latest |
||||
parent: ansible-role-virtualenv-src |
||||
nodeset: fedora-latest |
||||
|
||||
- job: |
||||
name: ansible-role-virtualenv-src-ubuntu-bionic |
||||
parent: ansible-role-virtualenv-src |
||||
nodeset: ubuntu-bionic |
||||
|
||||
- project: |
||||
templates: |
||||
- windmill-jobs-fedora-latest |
||||
- windmill-jobs-bionic |
||||
check: |
||||
jobs: |
||||
- ansible-role-virtualenv-fedora-latest |
||||
- ansible-role-virtualenv-ubuntu-bionic |
||||
- ansible-role-virtualenv-src-fedora-latest |
||||
- ansible-role-virtualenv-src-ubuntu-bionic |
||||
- tox-linters |
||||
gate: |
||||
jobs: |
||||
- ansible-role-virtualenv-fedora-latest |
||||
- ansible-role-virtualenv-ubuntu-bionic |
||||
- ansible-role-virtualenv-src-fedora-latest |
||||
- ansible-role-virtualenv-src-ubuntu-bionic |
||||
- tox-linters |
@ -1,2 +1,2 @@
|
||||
[all] |
||||
localhost |
||||
[test] |
||||
test01 ansible_host=127.0.0.1 |
||||
|
@ -0,0 +1,28 @@
|
||||
# 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: |
||||
# TODO(pabelanger): Remove once this lands in our base job in |
||||
# project-config. |
||||
- name: Execute ensure-output-dirs role |
||||
include_role: |
||||
name: ensure-output-dirs |
||||
|
||||
- name: Disable extra wheels mirror |
||||
become: yes |
||||
lineinfile: |
||||
dest: /etc/pip.conf |
||||
regexp: ^extra-index-url |
||||
state: absent |
@ -0,0 +1,20 @@
|
||||
# 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 |
||||
vars: |
||||
rolename: ansible-role-virtualenv |
||||
|
||||
roles: |
||||
- "{{ rolename }}" |
@ -1,39 +0,0 @@
|
||||
# Copyright 2015 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: localhost |
||||
vars: |
||||
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}" |
||||
pre_tasks: |
||||
# Make sure OS does not have a stale package cache. |
||||
- name: Update apt cache. |
||||
become: yes |
||||
apt: |
||||
update_cache: yes |
||||
when: ansible_os_family == 'Debian' |
||||
|
||||
roles: |
||||
- "{{ rolename }}" |
||||
|
||||
post_tasks: |
||||
- name: Register virtualenv_git_dest_stat. |
||||
stat: |
||||
path: /opt/ansible-role-virtualenv/git/pypa/virtualenv |
||||
register: virtualenv_git_dest_stat |
||||
|
||||
- name: Assert virtualenv_git_dest tests. |
||||
assert: |
||||
that: |
||||
- virtualenv_git_dest_stat.stat.exists |
||||
- virtualenv_git_dest_stat.stat.isdir |
Loading…
Reference in new issue