diff --git a/.appveyor.yml b/.appveyor.yml index 4e8e91ab43..411b7eb126 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -13,6 +13,7 @@ environment: platform: - x64 + - x86 before_build: - C:\Python36-x64\python.exe setup/win-ci.py sw diff --git a/setup/win-ci.py b/setup/win-ci.py index 690bc38f43..09b4c25e0f 100644 --- a/setup/win-ci.py +++ b/setup/win-ci.py @@ -164,7 +164,7 @@ def download_file(url): for i in range(5): try: printf('Downloading', url) - return subprocess.check_output(['curl.exe', '-fsSL', url]) + return subprocess.check_output(['curl.exe', '-fSL', url]) except subprocess.CalledProcessError: time.sleep(1) raise SystemExit('Failed to download: {}'.format(url)) @@ -174,7 +174,8 @@ def sw(): sw = os.environ['SW'] os.makedirs(sw) os.chdir(sw) - url = 'https://download.calibre-ebook.com/travis/win-64.tar.xz' + url = 'https://download.calibre-ebook.com/travis/win-{}.tar.xz'.format( + '64' if is64bit else '32') tarball = download_file(url) with tarfile.open(fileobj=io.BytesIO(tarball)) as tf: tf.extractall()