All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] travis/gitlab/azure: Run cppcheck in parallel
@ 2020-04-05 20:35 Simon Glass
  2020-04-11 15:22 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Glass @ 2020-04-05 20:35 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 .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 27bc2496297..c9770b9f842 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 d171641576b..0d886efcadc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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:
diff --git a/.travis.yml b/.travis.yml
index 37fd8e483ac..85540b94586 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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:
-- 
2.26.0.292.g33ef6b2f38-goog

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] travis/gitlab/azure: Run cppcheck in parallel
  2020-04-05 20:35 [PATCH] travis/gitlab/azure: Run cppcheck in parallel Simon Glass
@ 2020-04-11 15:22 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2020-04-11 15:22 UTC (permalink / raw)
  To: u-boot

On Sun, Apr 05, 2020 at 02:35:43PM -0600, Simon Glass wrote:

> This takes ages to run single-threaded. Adjust it to use all available
> processors.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-11 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 20:35 [PATCH] travis/gitlab/azure: Run cppcheck in parallel Simon Glass
2020-04-11 15:22 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.