From 788ad0fc1f870dd9428022ab01be9be6c465ae4a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 19 Jul 2018 08:43:23 +0200 Subject: [PATCH] Travis: Parallelize naming.py calls. (#1317) naming.py is called parallel (4 times at a time) for all *.cpp.dump files directly in gui/ and lib/. @matthiaskrgr had the idea for it: https://github.com/danmar/cppcheck/commit/e46c499f5a6c552672ce246e0be8f14c9febcc51#commitcomment-29717495 Files in gui/test are now ignored already when creating the .dump files. According to the Travis log output these changes speed up the Travis build up to three minutes. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bbcd90e7a..a885e5aba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,8 +74,8 @@ script: - ${CPPCHECK} --library=qt --error-exitcode=1 -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling -j 2 gui --suppressions-list=.travis_suppressions -igui/test |& tee --append /tmp/cppcheck.cppcheck - sh -c "! grep '^\[' /tmp/cppcheck.cppcheck" # check naming conventions - - ${CPPCHECK} -j 2 --dump -q gui lib - - python addons/naming.py --private-member-variable='m[A-Z].*' gui/*.cpp.dump lib/*.cpp.dump + - ${CPPCHECK} -i gui/test -j 2 --dump -q gui lib + - find lib gui -maxdepth 1 -name "*.dump" | xargs -n 1 -P 4 python addons/naming.py --private-member-variable='m[A-Z].*' # run extra tests - tools/generate_and_run_more_tests.sh # Validate XML