summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-03 14:02:22 +0700
committerhathach <[email protected]>2019-05-03 14:02:22 +0700
commit49ad6fe0ac0fc5479abac1b2d2d9174a6aedb663 (patch)
treec1a9e0a395fe2964dc5d1887853b4e09151cd61b
parenta55875522c8e39c9aadb1b7218eac985877b3f73 (diff)
update travis build, make with 4 thread
-rw-r--r--tools/build_all.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/build_all.py b/tools/build_all.py
index 513764e87..002b3002b 100644
--- a/tools/build_all.py
+++ b/tools/build_all.py
@@ -4,10 +4,8 @@ import sys
import subprocess
import time
-PARALLEL = "-j 4"
travis = False
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
- PARALLEL="-j 2"
travis = True
success_count = 0
@@ -19,7 +17,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 {} -C examples/device/{} BOARD={} all".format(PARALLEL, 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)
total_time = time.monotonic()
@@ -52,6 +50,6 @@ for example in all_device_example:
total_time = time.monotonic() - total_time
-
print("Total build time took {:.2f}s".format(total_time))
+
sys.exit(exit_status)