Skip to content

Commit

Permalink
Use batch (something weird going on with that powershell) and make th…
Browse files Browse the repository at this point in the history
…e virtualenv pin a minimum requirement.
  • Loading branch information
ionelmc committed Sep 4, 2019
1 parent 57eb557 commit b59924f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
17 changes: 5 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,13 @@ init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
- 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.
- C:\Python35\python -m pip install -U virtualenv==16.5.0
- C:\Python35\python -m pip install tox
- IF "%TOXENV:~0,4%" == "pypy" choco install --no-progress python.pypy
- SET PATH=C:\tools\pypy\pypy;%PATH%
- C:\Python37\python -m pip install -U "virtualenv>=16.5.0"
- C:\Python37\python -m pip install tox

test_script:
- C:\Python35\python -m tox
- C:\Python37\python -m tox

on_failure:
- ps: dir "env:"
Expand Down
18 changes: 5 additions & 13 deletions ci/templates/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,13 @@ 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

# Upgrade virtualenv for e.g. more-itertools to be handled properly.
# Pin it to work around https://github.com/tox-dev/tox/issues/1389.
- C:\Python35\python -m pip install -U virtualenv==16.5.0
- C:\Python35\python -m pip install tox
- IF "%TOXENV:~0,4%" == "pypy" choco install --no-progress python.pypy
- SET PATH=C:\tools\pypy\pypy;%PATH%
- C:\Python37\python -m pip install -U "virtualenv>=16.5.0"
- C:\Python37\python -m pip install tox

test_script:
- C:\Python35\python -m tox
- C:\Python37\python -m tox

on_failure:
- ps: dir "env:"
Expand Down

0 comments on commit b59924f

Please sign in to comment.