Skip to content

Commit 32435d8

Browse files
committed
ci: AppVeyor: only install PyPy if used [skip travis]
Uses powershell for simpler matching, adding with `--no-progress` to silence choco-install.
1 parent e6193fd commit 32435d8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

appveyor.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ init:
1515
- ps: echo $env:TOXENV
1616
- ps: ls C:\Python*
1717
install:
18-
# install pypy using choco (redirect to a file and write to console in case
19-
# choco install returns non-zero, because choco install python.pypy is too
20-
# noisy)
21-
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
22-
- set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
23-
- echo PyPy installed
24-
- pypy --version
18+
- ps: |
19+
if ($env:TOXENV -notmatch 'pypy') {
20+
choco install --no-progress python.pypy
21+
$env:PATH = "C:\tools\pypy\pypy;$env:PATH"
22+
pypy --version
23+
}
2524
2625
# Upgrade virtualenv for e.g. more-itertools to be handled properly.
2726
# Pin it to work around https://github.com./tox-dev/tox/issues/1389.

0 commit comments

Comments
 (0)