File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,23 @@ while read -r oldrev newrev refname; do
155
155
echo " puppet-lint not installed. Skipping puppet-lint tests..."
156
156
fi
157
157
fi
158
+
159
+ # g10k validation
160
+ if [[ " $CHECK_G10K " != " disabled" ]] ; then
161
+ if hash g10k > /dev/null 2>&1 ; then
162
+ if [[ " $changedfile " = " Puppetfile" ]]; then
163
+ printf " running g10k validation on $tmptree /Puppetfile... "
164
+ if g10k -validate -puppetfilelocation " $tmptree /Puppetfile" ; then
165
+ echo " ok"
166
+ else
167
+ failures=$(( failures + 1 ))
168
+ fi
169
+ fi
170
+ else
171
+ echo " g10k not installed. Skipping g10k Puppetfile test..."
172
+ fi
173
+ fi
174
+
158
175
# r10k puppetfile syntax check
159
176
if [[ " $CHECK_R10K " != " disabled" ]] ; then
160
177
if hash r10k > /dev/null 2>&1 ; then
You can’t perform that action at this time.
0 commit comments