commit | 48424d44a147a5dea9d8996e51dd011ca8957410 | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Tue Jan 07 13:01:31 2020 -0500 |
committer | Andrew Geissler <geissonator@yahoo.com> | Wed Jan 15 15:40:23 2020 +0000 |
tree | e0b67a699698221c6608ad21efd17327decfeba7 | |
parent | f1665d661defad85343bd52578bead809029f683 [diff] |
cppcheck: rewrite input file selection Use git ls-files to build the initial file list so build artifacts don't need to be manually specified like -src or -build. Run the resulting list through a regex that filters out mako templates and non c/c++ sources. This removes the need to manually specify scripts on the ignore list. Run cppcheck on test code. It should pass too. Skip cppcheck when there aren't any files found since cppcheck will exit with non-zero status and abort the overall CI run. Pass the file list to cppcheck via stdin. As a result, cppcheck needs to be invoked with Popen rather than check_call so the file list can be sent to cppcheck stdin. Change-Id: I927b867b45a6c73cc64101af0588dc05a4da41ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Build script for CI jobs in Jenkins.