reduce travis make thread to 2
This commit is contained in:
parent
a8d98d09ca
commit
a55875522c
|
@ -15,6 +15,4 @@ tests/build
|
||||||
.env
|
.env
|
||||||
/tests/lpc175x_6x/build/
|
/tests/lpc175x_6x/build/
|
||||||
/tests/lpc18xx_43xx/build/
|
/tests/lpc18xx_43xx/build/
|
||||||
/demos/*/*/Board_*
|
|
||||||
/demos/*/*/KeilBuild/
|
|
||||||
/examples/*/*/build-*
|
/examples/*/*/build-*
|
||||||
|
|
|
@ -4,6 +4,7 @@ import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
PARALLEL = "-j 4"
|
||||||
travis = False
|
travis = False
|
||||||
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
|
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
|
||||||
PARALLEL="-j 2"
|
PARALLEL="-j 2"
|
||||||
|
@ -18,7 +19,7 @@ all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "feather_nrf52
|
||||||
|
|
||||||
def build_example(example, board):
|
def build_example(example, board):
|
||||||
subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
return subprocess.run("make -j 4 -C examples/device/{} BOARD={} all".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
return subprocess.run("make {} -C examples/device/{} BOARD={} all".format(PARALLEL, example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
total_time = time.monotonic()
|
total_time = time.monotonic()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue