bindep/.zuul.yaml
Clark Boylan 697af0b17a Use nox
This illustrates the use of nox in a simpler project. It can build docs,
run linters, and execute unittests simply and effectively.

Note we pin the packaging package as newer versions have changed
behavior on rolling release distros that don't have proper version. This
is necessary to fix gating. The followup change fixes it properly.

Change-Id: I795e4d73f60d90b0f027df43a80ebda773ee9194
2023-01-25 16:09:12 -08:00

98 lines
2.1 KiB
YAML

- job:
name: bindep-base
description: |
Check that bindep itself can install packages on various platforms.
abstract: true
roles:
- zuul: zuul/zuul-jobs
run: playbooks/bindep/run.yaml
vars:
zuul_work_dir: '{{ zuul.project.src_dir }}'
zuul_work_virtualenv: '{{ ansible_user_dir }}/.venv'
- job:
name: bindep-centos-7
parent: bindep-base
nodeset: centos-7
- job:
name: bindep-centos-8-stream
parent: bindep-base
nodeset: centos-8-stream
- job:
name: bindep-fedora-latest
parent: bindep-base
nodeset: fedora-latest
- job:
name: bindep-opensuse-15
parent: bindep-base
nodeset: opensuse-15
- job:
name: bindep-ubuntu-xenial
parent: bindep-base
nodeset: ubuntu-xenial
- job:
name: bindep-ubuntu-bionic
parent: bindep-base
nodeset: ubuntu-bionic
- job:
name: bindep-ubuntu-focal
parent: bindep-base
nodeset: ubuntu-focal
- project:
vars:
release_python: python3
templates:
- publish-opendev-nox-docs
check:
jobs:
- bindep-centos-7
- bindep-centos-8-stream
- bindep-fedora-latest
- bindep-opensuse-15
- bindep-ubuntu-xenial
- bindep-ubuntu-bionic
- bindep-ubuntu-focal
- build-python-release
- nox-linters
- nox-py27
- nox-py36:
nodeset: ubuntu-bionic
- nox-py310:
nodeset: ubuntu-jammy
- nox-py311:
nodeset: ubuntu-jammy
- nox-cover
gate:
jobs:
- bindep-centos-7
- bindep-centos-8-stream
- bindep-fedora-latest
- bindep-opensuse-15
- bindep-ubuntu-xenial
- bindep-ubuntu-bionic
- bindep-ubuntu-focal
- build-python-release
- nox-linters
- nox-py27
- nox-py36:
nodeset: ubuntu-bionic
- nox-py310:
nodeset: ubuntu-jammy
- nox-py311:
nodeset: ubuntu-jammy
- nox-cover
promote:
jobs:
- opendev-promote-python
release:
jobs:
- opendev-release-python
- opendev-publish-unversioned-tox-docs