Skip to content

Commit

Permalink
Add Zuul support
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Dec 11, 2024
1 parent 3114c64 commit 914efcc
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/linters.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
# openstackdocstheme options
openstackdocs_repo_name = "openstack/staffeln"
openstackdocs_bug_project = (
"replace with the name of the project on Launchpad or the ID from Storyboard"
"replace with the name of the project on "
"Launchpad or the ID from Storyboard"
)
openstackdocs_bug_tag = ""

Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,pep8
envlist = py3,py37,py38,py39,py310,linters
skipsdist = True
sitepackages = False
skip_missing_interpreters = True
Expand All @@ -20,15 +20,18 @@ install_commands =
pip install {opts} {packages}


[testenv:py3]
[testenv:{py3,py38,py39,py310}]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}

[testenv:pep8]
[testenv:linters]
skipsdist = True
deps =
pre-commit
commands =
flake8
pre-commit run --all-files --show-diff-on-failure

[testenv:cover]
basepython = python3
Expand Down
9 changes: 9 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- job:
name: staffeln-linters
parent: tox-linters

- job:
name: staffeln-unit
parent: tox
vars:
tox_envlist: py3
5 changes: 5 additions & 0 deletions zuul.d/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- project:
check:
jobs:
- staffeln-linters
- staffeln-unit

0 comments on commit 914efcc

Please sign in to comment.