Skip to contentSkip to conversation

travis/gitlab/azure: Run cppcheck in parallel

PATCH New Simon Glass 2 participants 2 messages Apr 5, 2020 – Apr 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 travis/gitlab/azure: Run cppcheck in parallel

This takes ages to run single-threaded. Adjust it to use all available processors.

---

 .azure-pipelines.yml | 2 +-
 .gitlab-ci.yml       | 2 +-
 .travis.yml          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
.azure-pipelines.yml +1 -1
index 27bc2496297..c9770b9f842 100644
@@ -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'
.gitlab-ci.yml +1 -1
index d171641576b..0d886efcadc 100644
@@ -94,7 +94,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:
.travis.yml +1 -1
index 37fd8e483ac..85540b94586 100644
@@ -349,7 +349,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:
Signature · 1 line
2.26.0.292.g33ef6b2f38-goog
#1 lore raw

PATCH 1/1 travis/gitlab/azure: Run cppcheck in parallel

Quoted 4 lines · Simon Glass

This takes ages to run single-threaded. Adjust it to use all available processors.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200411/b9a41aa5/attachment.sig>