Bring zuul configuration in-tree

Change-Id: I42dd5b0e1a5ac5a83f4370790ada9617f1122f6b
Depends-On: https://review.opendev.org/c/openstack/project-config/+/763808
This commit is contained in:
Sorin Sbarnea 2021-01-13 07:52:34 +00:00
parent 1a58ace6cb
commit f4e0e70bb0
3 changed files with 15 additions and 3 deletions

12
.zuul.yaml Normal file
View File

@ -0,0 +1,12 @@
- project:
templates:
- openstack-python35-jobs-no-constraints
- publish-tox-docs-infra
check:
jobs:
- tox-linters
- tox-py36
gate:
jobs:
- tox-linters
- tox-py36

View File

@ -180,7 +180,7 @@ def git_credentials(url):
rc, out = run_command_status(*cmd, stdin=stdin.encode('utf-8')) rc, out = run_command_status(*cmd, stdin=stdin.encode('utf-8'))
if rc: if rc:
return None return None
data = dict(l.split('=', 1) for l in out.splitlines()) data = dict(line.split('=', 1) for line in out.splitlines())
return data['username'], data['password'] return data['username'], data['password']

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = pep8,docs,py27,py3{4,5,6,7} envlist = linters,docs,py27,py3{4,5,6,7}
ignore_basepython_conflict = true ignore_basepython_conflict = true
[testenv] [testenv]
@ -23,7 +23,7 @@ deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
[testenv:pep8] [testenv:linters]
commands = flake8 commands = flake8
[testenv:docs] [testenv:docs]