diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..59ae3d9ee --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +# appveyor file +# http://www.appveyor.com/docs/appveyor-yml +project_id: "fgmr18mx183acim0" + +version: "{build}" + +init: + - git config --global core.autocrlf input + +environment: + matrix: + - nodejs_version: 0.10 + +platform: + - x86 + +install: + - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) + - cmd: SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH% + - cmd: SET PATH=C:\python27;%PATH% + - cmd: python script/bootstrap.py + - python script/build.py + +test_script: + - node --version + - npm --version + - cmd: python script/test.py + +build: off diff --git a/script/lib/util.py b/script/lib/util.py index c78ca213e..17595742e 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -31,7 +31,7 @@ def scoped_cwd(path): def download(text, url, path): safe_mkdir(os.path.dirname(path)) - with open(path, 'w') as local_file: + with open(path, 'wb') as local_file: web_file = urllib2.urlopen(url) file_size = int(web_file.info().getheaders("Content-Length")[0]) downloaded_size = 0