Retry dependency installation commands on AppVeyor

There's an `appveyor-retry` command that should help to make some of the dependency installation more reliable and the AppVeyor tests less flaky.
This commit is contained in:
Carl Suster 2019-06-02 21:30:57 +10:00 committed by GitHub
parent 9e60b3101a
commit b0d476ae78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,11 +21,11 @@ environment:
# Install Tox for running tests.
install:
- cinst imagemagick -y
- appveyor-retry cinst imagemagick -y
# TODO: remove --allow-empty-checksums when unrar offers a proper checksum
- cinst unrar -y --allow-empty-checksums
- '%PYTHON%/Scripts/pip.exe install "tox<=3.8.1"'
- "%PYTHON%/Scripts/tox.exe -e %TOX_ENV% --notest"
- appveyor-retry cinst unrar -y --allow-empty-checksums
- 'appveyor-retry %PYTHON%/Scripts/pip.exe install "tox<=3.8.1"'
- "appveyor-retry %PYTHON%/Scripts/tox.exe -e %TOX_ENV% --notest"
test_script:
- "%PYTHON%/Scripts/tox.exe -e %TOX_ENV%"