Skip to content

Commit

Permalink
ci: AppVeyor: only install PyPy if used [skip travis]
Browse files Browse the repository at this point in the history
Uses powershell for simpler matching, adding with `--no-progress` to
silence choco-install.
  • Loading branch information
blueyed committed Aug 21, 2019
1 parent e6193fd commit 32435d8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions appveyor.yml
Expand Up @@ -15,13 +15,12 @@ init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
# install pypy using choco (redirect to a file and write to console in case
# choco install returns non-zero, because choco install python.pypy is too
# noisy)
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
- set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
- echo PyPy installed
- pypy --version
- ps: |
if ($env:TOXENV -notmatch 'pypy') {
choco install --no-progress python.pypy
$env:PATH = "C:\tools\pypy\pypy;$env:PATH"
pypy --version
}
# Upgrade virtualenv for e.g. more-itertools to be handled properly.
# Pin it to work around https://github.com/tox-dev/tox/issues/1389.
Expand Down

0 comments on commit 32435d8

Please sign in to comment.