Skip to content

Commit df18d22

Browse files
committed
Capture stderr as well and work on nRF build
1 parent cf70dc4 commit df18d22

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ before_script:
7070
- (! var_search "${TRAVIS_SDK-}" nrf || sudo ports/nrf/bluetooth/download_ble_stack.sh)
7171

7272
# For huzzah builds
73-
- (! var_search "${TRAVIS_SDK-}" esp8266 || (wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz && tar -C .. -xavf xtensa-lx106-elf-standalone.tar.gz))
73+
- (! var_search "${TRAVIS_SDK-}" esp8266 || (wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz && tar -C .. -xaf xtensa-lx106-elf-standalone.tar.gz))
7474
- if var_search "${TRAVIS_SDK-}" esp8266 ; then PATH=$(readlink -f ../xtensa-lx106-elf/bin):$PATH; fi
7575

7676
# For coverage testing (upgrade is used to get latest urllib3 version)

ports/nrf/bluetooth/download_ble_stack.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function download_s132_nrf52_2_0_1
1212
cd "${1}/s132_nrf52_2.0.1"
1313
wget https://www.nordicsemi.com/api/sitecore/Products/MedialibraryZipDownload2 --post-data="ids=863031714A574444AADFE444EBE5BA9B|&fileName=DeviceDownload" -O temp.zip
1414
unzip -u temp.zip
15-
rm temp.zip
15+
unzip -u s132nrf52201.zip
16+
rm temp.zip s132nrf52201.zip
1617
cd -
1718
}
1819

tools/build_adafruit_bins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
for language in languages:
3939
start_time = time.monotonic()
40-
make_result = subprocess.run("make -C ../ports/" + board_info["port"] + " TRANSLATION=" + language + " BOARD=" + board, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
40+
make_result = subprocess.run("make -C ../ports/" + board_info["port"] + " TRANSLATION=" + language + " BOARD=" + board, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
4141
build_duration = time.monotonic() - start_time
4242
success = "\033[32msucceeded\033[0m"
4343
if make_result.returncode != 0:

tools/build_board_info.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_current_info():
9292
response = response.json()
9393

9494
git_info = commit_sha, response["sha"]
95-
return git_info, json.loads(base64.b64decode(response["content"]))
95+
return git_info, json.loads(base64.b64decode(response["content"]).decode("utf-8"))
9696

9797
def create_pr(changes, updated, git_info):
9898
commit_sha, original_blob_sha = git_info
@@ -172,7 +172,7 @@ def generate_download_info():
172172
boards = {}
173173
errors = []
174174

175-
new_tag = os.environ.get("TRAVIS_TAG", "4.0.0-alpha.3")
175+
new_tag = os.environ["TRAVIS_TAG"]
176176

177177
changes = {
178178
"new_release": new_tag,
@@ -240,8 +240,7 @@ def generate_download_info():
240240
create_pr(changes, current_info, git_info)
241241

242242
if __name__ == "__main__":
243-
if "TRAVIS_TAG" in os.environ:
244-
print("tag", os.environ["TRAVIS_TAG"])
243+
if "TRAVIS_TAG" in os.environ and os.environ["TRAVIS_TAG"]:
245244
generate_download_info()
246245
else:
247246
print("skipping website update because this isn't a tag")

0 commit comments

Comments
 (0)