This prevents Travis from believing that an error has occurred after
10 minutes without output. Capture error messages in a file and print
its content after cppcheck has finished.
Exit the script with cppcheck's exit code.
Thanks @turol for your help with this!
This runs cppcheck static analysis as part of the travis-ci checks. The
current Travis version of cppcheck doesn't appear to support all the checks
we want, but for now should be sufficient. Identified issues that would cause
these checks to fail have been resolved in previous commits.
Thanks to @turol for doing the work to set this up.