472fc0f232
Dockerfile changes to support Go broke the resulting image by omitting entrypoint.sh. This updates the Dockerfile to include entrypoint.sh and set working directory correctly. - Add the 'run_drydock' make target to the omni test so that the Dockerfile image build is gated Change-Id: I4c3ee7fd3acb037940e17997b47fff94e0e7fc6f
55 lines
1.8 KiB
YAML
55 lines
1.8 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.
|
|
|
|
# Combine several test tasks into a single playbook
|
|
# to minimize Zuul node consumption
|
|
|
|
- hosts: primary
|
|
tasks:
|
|
- name: Execute the make target for PEP8 linting
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: pep8
|
|
register: result
|
|
- name: Execute the make target for Helm chart linting
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: helm_lint
|
|
register: result
|
|
- name: Build documents locally
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: docs
|
|
register: result
|
|
- name: Execute the make target for security scanning
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: security
|
|
register: result
|
|
- name: Execute the make target for unit testing
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: unit_tests
|
|
register: result
|
|
- name: Execute Go tests for baclient
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: test_baclient
|
|
become: true
|
|
register: result
|
|
- name: Execute the make target for building and running the Drydock Docker image
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
target: run_drydock
|
|
register: result
|
|
become: true
|