summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Walters <drewwalters96@gmail.com>2019-01-28 11:12:14 -0600
committerDrew Walters <drewwalters96@gmail.com>2019-01-28 11:27:26 -0600
commit5a32c2d1fd086db61326558dbfdb8ec077532674 (patch)
tree07668f7ae40befa647a7690d1e7f465a7668946e
parentebf4ee4785093cb49a38822585e6da84fb824ba3 (diff)
CI: Add chart build gate
This commit introduces a chart build gate that triggers when changes are made to charts in the charts/ directory. Change-Id: Iec1c6da785d26e2e7273b37fd1028f3bf47ec199
Notes
Notes (review): Code-Review+2: Bryan Strassner <strassner.bryan@gmail.com> Code-Review+2: Sean Eagan <sean.eagan@att.com> Workflow+1: Sean Eagan <sean.eagan@att.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 29 Jan 2019 15:36:03 +0000 Reviewed-on: https://review.openstack.org/633561 Project: openstack/airship-shipyard Branch: refs/heads/master
-rw-r--r--.zuul.yaml22
-rw-r--r--tools/gate/playbooks/build-charts.yaml21
2 files changed, 37 insertions, 6 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 045d61a..c4b210c 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -20,13 +20,15 @@
20 check: 20 check:
21 jobs: 21 jobs:
22 - openstack-tox-pep8 22 - openstack-tox-pep8
23 - airship-shipyard-linter 23 - airship-shipyard-chart-build-gate
24 - airship-shipyard-image 24 - airship-shipyard-whitespace-lint-gate
25 - airship-shipyard-image-gate
25 gate: 26 gate:
26 jobs: 27 jobs:
27 - openstack-tox-pep8 28 - openstack-tox-pep8
28 - airship-shipyard-linter 29 - airship-shipyard-chart-build-gate
29 - airship-shipyard-image 30 - airship-shipyard-whitespace-lint-gate
31 - airship-shipyard-image-gate
30 post: 32 post:
31 jobs: 33 jobs:
32 - airship-shipyard-docker-build-post 34 - airship-shipyard-docker-build-post
@@ -38,7 +40,15 @@
38 label: ubuntu-xenial 40 label: ubuntu-xenial
39 41
40- job: 42- job:
41 name: airship-shipyard-linter 43 name: airship-shipyard-chart-build-gate
44 timeout: 900
45 run: tools/gate/playbooks/build-charts.yaml
46 nodeset: airship-shipyard-single-node
47 files:
48 - ^charts/.*$
49
50- job:
51 name: airship-shipyard-whitespace-lint-gate
42 description: | 52 description: |
43 Lints all files by checking them for whitespace. 53 Lints all files by checking them for whitespace.
44 run: tools/gate/playbooks/zuul-linter.yaml 54 run: tools/gate/playbooks/zuul-linter.yaml
@@ -57,7 +67,7 @@
57 - ^releasenotes/.*$ 67 - ^releasenotes/.*$
58 68
59- job: 69- job:
60 name: airship-shipyard-image 70 name: airship-shipyard-image-gate
61 description: | 71 description: |
62 Run shipyard-image build. 72 Run shipyard-image build.
63 parent: airship-shipyard-image-base 73 parent: airship-shipyard-image-base
diff --git a/tools/gate/playbooks/build-charts.yaml b/tools/gate/playbooks/build-charts.yaml
new file mode 100644
index 0000000..4e93360
--- /dev/null
+++ b/tools/gate/playbooks/build-charts.yaml
@@ -0,0 +1,21 @@
1# Copyright 2019, AT&T Intellectual Property
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15- hosts: primary
16 tasks:
17 - name: Build charts
18 shell: |
19 make charts
20 args:
21 chdir: "{{ zuul.project.src_dir }}"