Skip to content

Commit

Permalink
use all cpus for coverity scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Jun 17, 2017
1 parent 6f64d2a commit 4098feb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coverity-scan.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#/bin/bash

cpus=$(grep ^processor </proc/cpuinfo| wc -l)
[ -z "${cpus}" ] && cpus=1

token=
[ -f .coverity-token ] && token="$(<.coverity-token)"
[ -z "${token}" ] && \
Expand Down Expand Up @@ -30,7 +33,7 @@ make clean || exit 1
[ -f netdata-coverity-analysis.tgz ] && \
rm netdata-coverity-analysis.tgz

"${covbuild}" --dir cov-int make -j4 || exit 1
"${covbuild}" --dir cov-int make -j${cpus} || exit 1

tar czvf netdata-coverity-analysis.tgz cov-int || exit 1

Expand Down

0 comments on commit 4098feb

Please sign in to comment.