Allow commit-tests to be run much faster on dev PC (does not affect adversely Travis)
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Allow variable core usage, default uses two cores, to set 8 cores for example : commit-tests.sh -j8
|
||||
: ${CORES:=2}
|
||||
# Allow variable core usage, default uses all cpu cores, to set 8 cores for example : commit-tests.sh -j8
|
||||
num_cpus=`grep 'physical id' /proc/cpuinfo | sort -u | wc -l`
|
||||
: ${CORES:=$num_cpus}
|
||||
# Default build treats warnings as errors, set -Wno-error to override, e.g.: commit-tests.sh -Wno-error
|
||||
: ${WERROR:=1}
|
||||
# A board name to build for, or ALL
|
||||
|
||||
Reference in New Issue
Block a user