Skip to content

Commit

Permalink
Fix appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile authored and sigmavirus24 committed Jan 31, 2019
1 parent 4bc1f21 commit 72bf8cc
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# To activate, change the Appveyor settings to use `.appveyor.yml`.
install:
- ps: "[Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"

- python -m pip install --upgrade virtualenv pip setuptools tox
- python -m pip install --upgrade tox virtualenv

# Fetch the three main PyPy releases
- ps: (New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy-2.6.1-win32.zip', "$env:appveyor_build_folder\pypy-2.6.1-win32.zip")
Expand All @@ -13,36 +11,16 @@ install:
- ps: 7z x pypy2-v5.3.1-win32.zip | Out-Null
- move pypy2-v5.3.1-win32 C:\

# Note: pypy3-v5.10.0 is commented out as it needs an updated pip to
# recognise the new python_requires, but there's a pypy bug preventing that.
# It's been fixed and will be in the next 5.10.1 release.
# See https://bitbucket.org/pypy/pypy/issues/2720/ensurepip-on-pypy-c-jit-93579-a4194a67868f
# and https://stackoverflow.com/q/47999518/724176.

# - ps: (New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.10.0-win32.zip', "$env:appveyor_build_folder\pypy3-v5.10.0-win32.zip")
# - ps: 7z x pypy3-v5.10.0-win32.zip | Out-Null
# - move pypy3-v5.10.0-win32 C:\

# workaround https://github.com/pypa/virtualenv/issues/93
- mkdir C:\python33\tcl\tcl8.6
- mkdir C:\python33\tcl\tk8.6
# - mkdir C:\pypy3-v5.10.0-win32\tcl\tcl8.6
# - mkdir C:\pypy3-v5.10.0-win32\tcl\tk8.6

# Only pypy2-5.3.1 is integrated into tox, as pypy3-2.4.0 fails and
# a Windows distribution of pypy3-5.2 isnt available yet.
- ps: $env:path = "$env:path;C:\pypy2-v5.3.1-win32;C:\pypy-2.6.1-win32\bin"

# pypy3-2.4.0 and pypy-2.6.1 are manually bootstrapped and tested
- ps: (New-Object Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', "$env:appveyor_build_folder\get-pip.py")
# errors are ignored due to https://github.com/pypa/pip/issues/2669#issuecomment-136405390
# - ps: C:\pypy3-v5.10.0-win32\pypy3 "$env:appveyor_build_folder\get-pip.py"; echo "ignore error"
# - ps: C:\pypy3-v5.10.0-win32\pypy3 -m pip install -U --force-reinstall pip setuptools; echo "ignore error"
- ps: C:\pypy-2.6.1-win32\pypy "$env:appveyor_build_folder\get-pip.py"
# TODO: pypy 6.0.0 offsets are different
#- ps: (New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-win32.zip', "$env:appveyor_build_folder\pypy3-v6.0.0-win32.zip")
#- ps: 7z x pypy3-v6.0.0-win32.zip | Out-Null
#- move pypy3-v6.0.0-win32 C:\

build: off

test_script:
- python -m tox
# - C:\pypy3-v5.10.0-win32\pypy3 -m unittest discover pyflakes
- C:\pypy-2.6.1-win32\pypy -m unittest discover pyflakes
- C:\pypy2-v5.3.1-win32\pypy -m unittest discover pyflakes
# TODO: pypy 6.0.0 offsets are different
#- C:\pypy3-v6.0.0-win32\pypy3 -m unittest discover pyflakes

0 comments on commit 72bf8cc

Please sign in to comment.