mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
Allow commit-tests to be run much faster on dev PC (does not affect adversely Travis)
This commit is contained in:
parent
b393976879
commit
577eb6224f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue