Why we chose Bash to write our CI scripts at FusionCharts
CI scripts in Bash
at FusionCharts.
Why!?
Kaustav Das Modak, Dev. Evangelist, FusionCharts
Know the system
inside out
How we structured the system?
npm test
| - lint
| - build
| - docs
| - verify
- Each script begins with
set -e
.
- Followed by a banner.
- Followed by an ASCII art!
- Inline comments in markdown, describing every step.
- Use
echo
to provide progress reports.
- Take out all the code, leaving the comments.
- Remove preceding "#" from the beginning of line.
- The script will be a valid Markdown file, describing a process.
It is great for medium-sized CI projects, till you know what you are doing.