1
0
Fork 0
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:
3djc 2018-10-12 07:31:34 +02:00
parent b393976879
commit 577eb6224f

View file

@ -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