mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
CI: increase speed of codestyle check
by running up to nproc ones in parallel
This commit is contained in:
parent
750d37b16c
commit
59e0c15ee9
1 changed files with 4 additions and 8 deletions
|
|
@ -19,14 +19,10 @@ run_checks () {
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f |
|
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f -print0 |
|
||||||
{
|
nice xargs -0 --max-args 1 --max-procs $(nproc) \
|
||||||
errors=0
|
scripts/checkpatch.pl --terse --no-tree --strict --file
|
||||||
while IFS= read -r file; do
|
return $?
|
||||||
run_checkpatch "$file" || errors=1
|
|
||||||
done
|
|
||||||
return ${errors}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue