diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-12-01 01:54:18 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-12-04 18:20:48 -0800 |
| commit | 15c1fc873ce25a73920d6141d3e7f85e37d89514 (patch) | |
| tree | 4f2cc411d6083cd488f9c4209e798eede00ee661 /tools | |
| parent | dbd3a77908343dd036ab1cd3b76b6fa4f9d85e8c (diff) | |
Add particle boards, fix cp32 and try to speed up atmel build
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build_release_files.py (renamed from tools/build_adafruit_bins.py) | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/build_adafruit_bins.py b/tools/build_release_files.py index 94c31ad33..a3b91c331 100755 --- a/tools/build_adafruit_bins.py +++ b/tools/build_release_files.py @@ -1,6 +1,4 @@ import os -from sh import rm -from sh import make import sys import subprocess import shutil @@ -8,7 +6,7 @@ import build_board_info as build_info import time for port in build_info.SUPPORTED_PORTS: - rm("-rf", "../ports/{}/build*".format(port)) + result = subprocess.run("rm -rf ../ports/{}/build*".format(port), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) ROSIE_SETUPS = ["rosie-ci"] rosie_ok = {} @@ -60,8 +58,9 @@ for board in build_boards: if travis: print('travis_fold:start:adafruit-bins-{}-{}\\r'.format(language, board)) print("Build {} for {} took {:.2f}s and {}".format(board, language, build_duration, success)) - print(make_result.stdout.decode("utf-8")) - print(other_output) + if make_result.returncode != 0: + print(make_result.stdout.decode("utf-8")) + print(other_output) # Only upload to Rosie if its a pull request. if travis: for rosie in ROSIE_SETUPS: |
