I just learned about trap

Automatically exit on failure
Get coverity to build the dry-run branch automatically