add travis badge, make with 4 thread
This commit is contained in:
parent
7d47317e17
commit
31e21d8b38
@ -1,4 +1,6 @@
|
||||
# Adafruit Bluefruit nRF52 Bootloader
|
||||
# Adafruit nRF52 Bootloader
|
||||
|
||||
[![Build Status](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader)
|
||||
|
||||
This is a CDC/DFU/UF2 bootloader for nRF52 boards.
|
||||
|
||||
|
@ -7,10 +7,8 @@ import time
|
||||
subprocess.run("rm -rf _build*", shell=True)
|
||||
subprocess.run("rm -rf bin/*", shell=True)
|
||||
|
||||
PARALLEL = "-j 5"
|
||||
travis = False
|
||||
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
|
||||
PARALLEL="-j 2"
|
||||
travis = True
|
||||
|
||||
exit_status = 0
|
||||
@ -21,12 +19,14 @@ for entry in os.scandir("src/boards"):
|
||||
|
||||
#sha, version = build_info.get_version_info()
|
||||
|
||||
total_time = time.monotonic()
|
||||
|
||||
for board in all_boards:
|
||||
bin_directory = "bin/{}/".format(board)
|
||||
os.makedirs(bin_directory, exist_ok=True)
|
||||
|
||||
start_time = time.monotonic()
|
||||
make_result = subprocess.run("make BOARD={} combinehex genpkg".format(board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
make_result = subprocess.run("make -j 4 BOARD={} combinehex genpkg".format(board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
build_duration = time.monotonic() - start_time
|
||||
success = "\033[32msucceeded\033[0m"
|
||||
if make_result.returncode != 0:
|
||||
@ -48,4 +48,7 @@ for board in all_boards:
|
||||
|
||||
print()
|
||||
|
||||
total_time = time.monotonic() - total_time
|
||||
print("Total build time took {:.2f}s".format(total_time))
|
||||
|
||||
sys.exit(exit_status)
|
||||
|
Loading…
Reference in New Issue
Block a user