Skip to content

Commit 1d6f960

Browse files
committed
ci: AppVeyor: only install PyPy if used [skip travis]
1 parent 6dc54b1 commit 1d6f960

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

appveyor.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ install:
1818
# install pypy using choco (redirect to a file and write to console in case
1919
# choco install returns non-zero, because choco install python.pypy is too
2020
# 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
21+
- if not x%TOXENV:pypy=%==x%TOXENV% (
22+
(choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)) &&
23+
set "PATH=C:\tools\pypy\pypy;%PATH%" &&
24+
pypy --version
25+
)
2526

2627
# Upgrade virtualenv for e.g. more-itertools to be handled properly.
2728
# Pin it to work around https://github.com./tox-dev/tox/issues/1389.

0 commit comments

Comments
 (0)