utils/.zuul.yaml
Andrey Volkov 2eaedf43d3 Add lint and check gates for airship-utils
This is base CR for all other CRs in airship-utils.
It sets up gates config with .zuul.yaml.

It was intended that airship-utils project is a collection of utils
can be used in Airship. At the moment only one util is available -
miniMirror. So all gates checking aims to miniMirror checks.

Two gates available:

- Lint gate runs shellcheck on assets/*.sh
  and hadolint Dockerfile. Can be checked locally with "make lint".
- Check gate builds an image and runs container from the image.
  It also checks that it's possible to install Debian packages from
  the running container.

Change-Id: I354cf96a4ddcd9f1f077a4a93869178ec6c366ab
2018-11-27 10:51:05 -08:00

60 lines
1.9 KiB
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# 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.
- project:
check:
jobs:
- airship-utils-linter
- airship-utils-ubuntu
gate:
jobs:
- airship-utils-linter
- airship-utils-ubuntu
- job:
name: airship-utils-linter
roles:
- zuul: openstack/openstack-helm-infra
vars:
zuul_osh_infra_relative_path: ../openstack-helm-infra/
timeout: 7200
pre-run:
- tools/gate/playbooks/osh-infra-upgrade-host.yaml
- tools/gate/playbooks/osh-infra-deploy-docker.yaml
run: tools/gate/playbooks/zuul-linter.yaml
post-run: tools/gate/playbooks/osh-infra-collect-logs.yaml
required-projects:
- openstack/openstack-helm-infra
- job:
name: airship-utils
roles:
- zuul: openstack/openstack-helm-infra
vars:
zuul_osh_infra_relative_path: ../openstack-helm-infra/
timeout: 7200
pre-run:
- tools/gate/playbooks/osh-infra-upgrade-host.yaml
- tools/gate/playbooks/osh-infra-deploy-docker.yaml
- tools/gate/playbooks/osh-infra-build.yaml
- tools/gate/playbooks/osh-infra-deploy-k8s.yaml
run: tools/gate/playbooks/zuul-check.yaml
post-run: tools/gate/playbooks/osh-infra-collect-logs.yaml
required-projects:
- openstack/openstack-helm-infra
- job:
name: airship-utils-ubuntu
parent: airship-utils
nodeset: openstack-helm-single-node