Skip to content

Commit

Permalink
[Not for merge yet] Zuul CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ianw committed Nov 6, 2020
1 parent 0512785 commit 7225f26
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- job:
name: pypa-pip-base
abstract: true
description: Run pypa/pip unit testing
run: .zuul.playbooks/playbooks/tox/main.yaml

- job:
name: pypa-pip-py38
parent: pypa-pip-base
nodeset: ubuntu-focal
vars:
tox_envlist: py38
4 changes: 4 additions & 0 deletions .zuul.d/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- project:
check:
jobs:
- pypa-pip-py38
33 changes: 33 additions & 0 deletions .zuul.playbooks/playbooks/tox/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
- hosts: all
tasks:

- name: Install tox
include_role:
name: ensure-tox

# TODO(ianw) : let's see if this is interferring
# with some of the pip tox runs
- name: Remove OpenDev mirror config
file:
path: /etc/pip.conf
state: absent
become: yes

- name: Run tox unit tests
include_role:
name: tox
vars:
tox_extra_args: "-- -m unit -n auto --use-venv"

- name: Run tox integration tests with no network
include_role:
name: tox
vars:
tox_extra_args: '-- -m "integration and not network" -n auto --use-venv'

# TODO(ianw): We hit rate limits if we do this in auto parallel mode
- name: Run tox integration tests with network
include_role:
name: tox
vars:
tox_extra_args: '-- -m "integration and network" -n 4 --use-venv'
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ prune news
prune tasks
prune tests
prune tools

recursive-exclude .zuul.d *
recursive-exclude .zuul.playbooks *

0 comments on commit 7225f26

Please sign in to comment.