aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-04-05 14:35:43 -0600
committerTom Rini <trini@konsulko.com>2020-04-10 21:36:37 -0400
commit4ee7f527810ec77c6f0c64975ccbadbde3277696 (patch)
tree9287c271d41e984bb43fdb4cd21842c96c27de1c
parentf5ec7eebf774456f0c24fc5eae6d0421e353bea6 (diff)
downloadu-boot-4ee7f527810ec77c6f0c64975ccbadbde3277696.zip
u-boot-4ee7f527810ec77c6f0c64975ccbadbde3277696.tar.gz
u-boot-4ee7f527810ec77c6f0c64975ccbadbde3277696.tar.bz2
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 <sjg@chromium.org>
-rw-r--r--.azure-pipelines.yml2
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--.travis.yml2
3 files changed, 3 insertions, 3 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 8c3bb0a..d3e7b4d 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 a4f8a71..08bdf81 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 bd2ac4e..b3253da 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: