summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-15 18:11:08 +0700
committerhathach <[email protected]>2019-05-15 18:11:08 +0700
commit22d8479299bbae73fef0a52d1c1452b1244158d7 (patch)
tree0eb3fbc6c91a62bf9573735693f4db2c5a34d869
parent3278a9765ba80d3148e22549fd60755d1c99ed2f (diff)
update travis build script
-rw-r--r--tools/build_all.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/build_all.py b/tools/build_all.py
index cf56986b4..4b0cf9820 100644
--- a/tools/build_all.py
+++ b/tools/build_all.py
@@ -13,7 +13,11 @@ fail_count = 0
exit_status = 0
all_device_example = ["cdc_msc_hid", "msc_dual_lun", "hid_generic_inout"]
-all_boards = ["metro_m0_express", "metro_m4_express", "pca10056", "feather_nrf52840_express", "stm32f407g_disc1", "lpcxpresso11u68", "lpcxpresso1347", "lpcxpresso1769", "mcb1800", "ea4088qs", "ea4357"]
+
+all_boards = []
+for entry in os.scandir("hw/bsp"):
+ if entry.is_dir():
+ all_boards.append(entry.name)
def build_example(example, board):
subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
@@ -48,8 +52,9 @@ for example in all_device_example:
#board = 'pca10056'
#build_example(example, board)
-
total_time = time.monotonic() - total_time
+
+print("Build Sumamary: {} \033[32msucceeded\033[0m, {} \033[31mfailed\033[0m".format(success_count, fail_count))
print("Total build time took {:.2f}s".format(total_time))
sys.exit(exit_status)