Browse Source

Merge "CI: Add chart build gate"

Zuul 2 months ago
parent
commit
6bd02eea84
2 changed files with 37 additions and 6 deletions
  1. 16
    6
      .zuul.yaml
  2. 21
    0
      tools/gate/playbooks/build-charts.yaml

+ 16
- 6
.zuul.yaml View File

@@ -20,13 +20,15 @@
20 20
     check:
21 21
       jobs:
22 22
         - openstack-tox-pep8
23
-        - airship-shipyard-linter
24
-        - airship-shipyard-image
23
+        - airship-shipyard-chart-build-gate
24
+        - airship-shipyard-whitespace-lint-gate
25
+        - airship-shipyard-image-gate
25 26
     gate:
26 27
       jobs:
27 28
         - openstack-tox-pep8
28
-        - airship-shipyard-linter
29
-        - airship-shipyard-image
29
+        - airship-shipyard-chart-build-gate
30
+        - airship-shipyard-whitespace-lint-gate
31
+        - airship-shipyard-image-gate
30 32
     post:
31 33
       jobs:
32 34
         - airship-shipyard-docker-build-post
@@ -38,7 +40,15 @@
38 40
         label: ubuntu-xenial
39 41
 
40 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 52
     description: |
43 53
       Lints all files by checking them for whitespace.
44 54
     run: tools/gate/playbooks/zuul-linter.yaml
@@ -57,7 +67,7 @@
57 67
       - ^releasenotes/.*$
58 68
 
59 69
 - job:
60
-    name: airship-shipyard-image
70
+    name: airship-shipyard-image-gate
61 71
     description: |
62 72
       Run shipyard-image build.
63 73
     parent: airship-shipyard-image-base

+ 21
- 0
tools/gate/playbooks/build-charts.yaml View File

@@ -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 }}"

Loading…
Cancel
Save