Skip to content

Commit

Permalink
Only install pypy on AppVeyor for "pypy" tox-env
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Nov 12, 2016
1 parent c169c88 commit ec69514
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include tox.ini
include setup.py

recursive-include scripts *.py
recursive-include scripts *.bat

include .coveragerc

Expand Down
10 changes: 2 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ environment:
# https://www.appveyor.com/docs/build-configuration#secure-variables

matrix:
# note: please use "tox --listenvs" to populate the build matrix below
- TOXENV: "linting"
- TOXENV: "py26"
- TOXENV: "py27"
Expand All @@ -28,14 +29,7 @@ install:
- echo Installed Pythons
- dir c:\Python*

# 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)
# pypy is disabled until #1963 gets fixed
- 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
- if "%TOXENV%" == "pypy" scripts\install-pypy.bat

- C:\Python35\python -m pip install tox

Expand Down
6 changes: 6 additions & 0 deletions scripts/install-pypy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REM install pypy using choco
REM redirect to a file because choco install python.pypy is too noisy. If the command fails, write output to console
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

0 comments on commit ec69514

Please sign in to comment.