initial import
This commit is contained in:
parent
27796c48bc
commit
25c96d7d55
4
linters-requirements.txt
Normal file
4
linters-requirements.txt
Normal file
@ -0,0 +1,4 @@
|
||||
# linters have different requirements than test ones, some would
|
||||
# conflict, like ansible version required by ansible-lint.
|
||||
flake8
|
||||
yamllint>=1.23.0
|
13
setup.cfg
Normal file
13
setup.cfg
Normal file
@ -0,0 +1,13 @@
|
||||
[metadata]
|
||||
name = scs-zuul-config
|
||||
summary = Zuul configuration for the SCS on OTC
|
||||
description_file =
|
||||
README.rst
|
||||
author = OpenTelekomCloud Eco Infrastructure Team
|
||||
classifier =
|
||||
Environment :: OpenStack
|
||||
Intended Audience :: Information Technology
|
||||
Intended Audience :: System Administrators
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
Programming Language :: Python
|
17
setup.py
Normal file
17
setup.py
Normal file
@ -0,0 +1,17 @@
|
||||
# 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.
|
||||
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['pbr>=2.0'],
|
||||
pbr=True)
|
42
tox.ini
Normal file
42
tox.ini
Normal file
@ -0,0 +1,42 @@
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = linters
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
basepython = python3
|
||||
|
||||
[testenv:linters]
|
||||
whitelist_externals = bash
|
||||
setenv =
|
||||
|
||||
# Add dependencies here since other jobs use python2 and zuul requires
|
||||
# python3.
|
||||
deps =
|
||||
-r{toxinidir}/linters-requirements.txt
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
yamllint -s -f parsable .
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
ignore = E124,E125,E129,E252,E402,E741,E501,W503,W504,H
|
||||
show-source = True
|
||||
exclude =
|
||||
.venv,
|
||||
.tox,
|
||||
dist,
|
||||
doc,
|
||||
build,
|
||||
*.egg,
|
||||
|
||||
[testenv:bindep]
|
||||
# Do not install any requirements. We want this to be fast and work even if
|
||||
# system dependencies are missing, since it's used to tell you what system
|
||||
# dependencies are missing! This also means that bindep must be installed
|
||||
# separately, outside of the requirements files.
|
||||
deps = bindep
|
||||
commands = bindep test
|
30
zuul/main.yaml
Normal file
30
zuul/main.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
- admin-rule:
|
||||
name: admin
|
||||
conditions:
|
||||
- resource_access.zuul.roles: "admin"
|
||||
|
||||
- admin-rule:
|
||||
name: scs_admin
|
||||
conditions:
|
||||
- resource_access.zuul.roles: "scs_admin"
|
||||
|
||||
- tenant:
|
||||
name: scs
|
||||
admin-rules:
|
||||
- admin
|
||||
- scs_admin
|
||||
exclude-unprotected-branches: true
|
||||
report-build-page: true
|
||||
max-nodes-per-job: 5
|
||||
source:
|
||||
gitea:
|
||||
config-project:
|
||||
- scs/project-config
|
||||
- scs/base-jobs
|
||||
untrusted-projects:
|
||||
|
||||
opendev:
|
||||
untrusted-projects:
|
||||
- zuul/zuul-jobs:
|
||||
shadow:
|
||||
- scs/project-config
|
Loading…
x
Reference in New Issue
Block a user