Skip to content

Commit 31e21d8

Browse files
committed
add travis badge, make with 4 thread
1 parent 7d47317 commit 31e21d8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Adafruit Bluefruit nRF52 Bootloader
1+
# Adafruit nRF52 Bootloader
2+
3+
[![Build Status](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_nRF52_Bootloader)
24

35
This is a CDC/DFU/UF2 bootloader for nRF52 boards.
46

tools/build_all.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
subprocess.run("rm -rf _build*", shell=True)
88
subprocess.run("rm -rf bin/*", shell=True)
99

10-
PARALLEL = "-j 5"
1110
travis = False
1211
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
13-
PARALLEL="-j 2"
1412
travis = True
1513

1614
exit_status = 0
@@ -21,12 +19,14 @@
2119

2220
#sha, version = build_info.get_version_info()
2321

22+
total_time = time.monotonic()
23+
2424
for board in all_boards:
2525
bin_directory = "bin/{}/".format(board)
2626
os.makedirs(bin_directory, exist_ok=True)
2727

2828
start_time = time.monotonic()
29-
make_result = subprocess.run("make BOARD={} combinehex genpkg".format(board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
29+
make_result = subprocess.run("make -j 4 BOARD={} combinehex genpkg".format(board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
3030
build_duration = time.monotonic() - start_time
3131
success = "\033[32msucceeded\033[0m"
3232
if make_result.returncode != 0:
@@ -48,4 +48,7 @@
4848

4949
print()
5050

51+
total_time = time.monotonic() - total_time
52+
print("Total build time took {:.2f}s".format(total_time))
53+
5154
sys.exit(exit_status)

0 commit comments

Comments
 (0)