Base Shell Script Style Guide

By Mark Ayers on January 23, 2017 — 1 min read

We drive our devops sys­tem of CI/​CD pipelines with a col­lec­tion of stan­dard­ized bash shell scripts. These scripts col­lect required resources; val­i­date start­ing con­di­tions; check for lint and style issues; run unit, accep­tance, inte­gra­tion, per­for­mance, and smoke tests; build deploy­ment pack­ages and sup­port­ing infra­struc­ture in var­i­ous envi­ron­ments; all while col­lect­ing met­rics on the arti­facts being built and the pipeline’s exe­cu­tion; and report­ing the suc­cess and fail­ure of each pipeline stage, job, and task into our ded­i­cated chatops chan­nels. Here is our base shell style guide.

https://​google​.github​.io/​s​t​y​l​e​g​u​i​d​e​/​s​h​e​l​l​.​xml

Posted in: Technology