Retry the rustup download on appveyor if it fails

This commit is contained in:
Philipp Oppermann
2018-03-13 20:39:19 +01:00
parent 424e9c4aaa
commit 7a14fe6a90

View File

@@ -52,7 +52,7 @@ cache:
# For simple configurations, instead of using the build matrix, you can simply set the # For simple configurations, instead of using the build matrix, you can simply set the
# default-toolchain and default-host manually here. # default-toolchain and default-host manually here.
install: install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target% - rustup-init -yv --default-toolchain %channel% --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV - rustc -vV