danmar/cppcheck — pull request #266 by matthiaskrgr (2014-03-16 11:52:42+00:00)
Title: travis: check kernel as part of travis testing.

add 2 more jobs (one for gcc, one for clang) which only compile Cppcheck with opimization CXXFLAGS to afterwards check a fixed version of the linux kernel to see if cppcheck crashes.

more detailed:
we add 2 additional jobs with CXXFLAGS that will speed up cppcheck and set a control var.
Then we install the dependencies etc as usual.
Now, instead of running make and make check, we download a kernel tarball and extract it, build cppcheck with the CXXFLAGS.
If this is done, let cppcheck check the kernel and write the results to a log file.
When we are finished, we check the log file if it says that cppcheck has crashed while checking the kernel, if it did, return false and make travis fail the job. When this is done, end the job to prevent us from timing out (and do not run make check, build gui etc etc in that job).

In comparison to master branch this will slow down travis build by around 10 minutes (also depends on travis which can behave funky sometimes), but we will find more bug of cppcheck that the test suit wont cover. There have been a few cases since 1.64 where cppcheck crashed against the kernel which was not noticed in any way by the test suit or travis.