From 4ee7f527810ec77c6f0c64975ccbadbde3277696 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 5 Apr 2020 14:35:43 -0600 Subject: [PATCH] travis/gitlab/azure: Run cppcheck in parallel This takes ages to run single-threaded. Adjust it to use all available processors. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- .travis.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8c3bb0abfd..d3e7b4dd02 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -52,7 +52,7 @@ jobs: image: $(ci_runner_image) options: $(container_option) steps: - - script: cppcheck --force --quiet --inline-suppr . + - script: cppcheck -j$(nproc) --force --quiet --inline-suppr . - job: htmldocs displayName: 'Build HTML documentation' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a4f8a71991..08bdf81e74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,7 +103,7 @@ cppcheck: tags: [ 'all' ] stage: testsuites script: - - cppcheck --force --quiet --inline-suppr . + - cppcheck -j$(nproc) --force --quiet --inline-suppr . # search for TODO within source tree grep TODO/FIXME/HACK: diff --git a/.travis.yml b/.travis.yml index bd2ac4ee27..b3253da13c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -448,7 +448,7 @@ matrix: # static code analysis with cppcheck (we can add --enable=all later) - name: "cppcheck" script: - - cppcheck --force --quiet --inline-suppr . + - cppcheck -j$(nproc) --force --quiet --inline-suppr . # build HTML documentation - name: "htmldocs" script: -- 2.25.1