1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Add Win32 build to CI system (#6493)

Build a single INO under a Windows VM on Travis to ensure
that the Win32 toolchain works properly.

In build.py, instead of making a string with spaces and then
splitting on " ", just make the list itself with individual parameters.
This will allow spaces in paths to be supported properly.
This commit is contained in:
Earle F. Philhower, III
2019-09-10 14:50:55 -07:00
committed by GitHub
parent 4f74ed8408
commit 1f86311d79
4 changed files with 99 additions and 35 deletions

View File

@ -15,6 +15,9 @@ import sys
import tarfile
import zipfile
import re
verbose = True
if sys.version_info[0] == 3:
from urllib.request import urlretrieve
else:
@ -38,10 +41,12 @@ def mkdir_p(path):
raise
def report_progress(count, blockSize, totalSize):
percent = int(count*blockSize*100/totalSize)
percent = min(100, percent)
sys.stdout.write("\r%d%%" % percent)
sys.stdout.flush()
global verbose
if verbose:
percent = int(count*blockSize*100/totalSize)
percent = min(100, percent)
sys.stdout.write("\r%d%%" % percent)
sys.stdout.flush()
def unpack(filename, destination):
dirname = ''
@ -111,6 +116,11 @@ def identify_platform():
return arduino_platform_names[sys_name][bits]
def main():
global verbose
# Support optional "-q" quiet mode simply
if len(sys.argv) == 2:
if sys.argv[1] == "-q":
verbose = False
print('Platform: {0}'.format(identify_platform()))
tools_to_download = load_tools_list('../package/package_esp8266com_index.template.json', identify_platform())
mkdir_p(dist_dir)