|
10 | 10 | for port in build_info.SUPPORTED_PORTS:
|
11 | 11 | result = subprocess.run("rm -rf ../ports/{port}/build*".format(port=port), shell=True)
|
12 | 12 |
|
13 |
| -ROSIE_SETUPS = ["rosie-ci"] |
14 |
| -rosie_ok = {} |
15 |
| -for rosie in ROSIE_SETUPS: |
16 |
| - rosie_ok[rosie] = True |
17 |
| - |
18 | 13 | PARALLEL = "-j 5"
|
19 |
| -travis = False |
20 |
| -if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true": |
| 14 | +if "GITHUB_ACTION" in os.environ: |
21 | 15 | PARALLEL="-j 2"
|
22 |
| - travis = True |
23 | 16 |
|
24 | 17 | all_boards = build_info.get_board_mapping()
|
25 | 18 | build_boards = list(all_boards.keys())
|
26 |
| -if "TRAVIS_BOARDS" in os.environ: |
27 |
| - build_boards = os.environ["TRAVIS_BOARDS"].split() |
| 19 | +if "BOARDS" in os.environ: |
| 20 | + build_boards = os.environ["BOARDS"].split() |
28 | 21 |
|
29 | 22 | sha, version = build_info.get_version_info()
|
30 | 23 |
|
|
83 | 76 | if exit_status == 0:
|
84 | 77 | exit_status = 1
|
85 | 78 |
|
86 |
| - if travis: |
87 |
| - print('travis_fold:start:adafruit-bins-{}-{}\\r'.format(language, board)) |
88 | 79 | print("Build {board} for {language}{clean_build} took {build_duration:.2f}s and {success}".format(
|
89 | 80 | board=board, language=language, clean_build=(" (clean_build)" if clean_build else ""),
|
90 | 81 | build_duration=build_duration, success=success))
|
91 |
| - if make_result.returncode != 0: |
92 |
| - print(make_result.stdout.decode("utf-8")) |
93 |
| - print(other_output) |
94 |
| - # Only upload to Rosie if its a pull request. |
95 |
| - if travis: |
96 |
| - for rosie in ROSIE_SETUPS: |
97 |
| - if not rosie_ok[rosie]: |
98 |
| - break |
99 |
| - print("Uploading to https://{rosie}.ngrok.io/upload/{sha}".format(rosie=rosie, sha=sha)) |
100 |
| - #curl -F "file=@$final_filename" https://$rosie.ngrok.io/upload/$sha |
101 |
| - if travis: |
102 |
| - print('travis_fold:end:adafruit-bins-{}-{}\\r'.format(language, board)) |
103 |
| - |
104 |
| - # Flush so travis will see something before 10 minutes has passed. |
| 82 | + |
| 83 | + print(make_result.stdout.decode("utf-8")) |
| 84 | + print(other_output) |
| 85 | + |
| 86 | + # Flush so we will see something before 10 minutes has passed. |
105 | 87 | print(flush=True)
|
106 | 88 |
|
107 | 89 | sys.exit(exit_status)
|
0 commit comments