| # 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 |
| |
| # 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") |
| - ps: 7z x pypy-2.6.1-win32.zip | Out-Null |
| - move pypy-2.6.1-win32 C:\ |
| |
| - ps: (New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.3.1-win32.zip', "$env:appveyor_build_folder\pypy2-v5.3.1-win32.zip") |
| - 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" |
| |
| build: off |
| |
| test_script: |
| - python -m tox |
| # - C:\pypy3-v5.10.0-win32\pypy3 setup.py test -q |
| - C:\pypy-2.6.1-win32\pypy setup.py test -q |