summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-03 13:56:52 +0700
committerhathach <[email protected]>2019-05-03 13:56:52 +0700
commita55875522c8e39c9aadb1b7218eac985877b3f73 (patch)
tree1e1d8c8f3f0d57e4cd21ab30e1df2ad00e282a14 /tools
parenta8d98d09ca18d3caa537262dcae639225fddb9f3 (diff)
reduce travis make thread to 2
Diffstat (limited to 'tools')
-rw-r--r--tools/build_all.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build_all.py b/tools/build_all.py
index d65bb0730..513764e87 100644
--- a/tools/build_all.py
+++ b/tools/build_all.py
@@ -4,6 +4,7 @@ import sys
import subprocess
import time
+PARALLEL = "-j 4"
travis = False
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
PARALLEL="-j 2"
@@ -18,7 +19,7 @@ all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "feather_nrf52
def build_example(example, board):
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()