azure: Uninstall previous rustc from builders if any

Looks like Azure has updated images recently to install Rust by default,
but that can interfere with our own compiler (for example Cargo's test
suite we think) so be sure to uninstall it before proceeding.
This commit is contained in:
Alex Crichton 2019-06-05 07:36:19 -07:00
parent 0b88e5a87e
commit fb3bd58e4f

View File

@ -102,6 +102,10 @@ steps:
- bash: |
set -e
# Remove any preexisting rustup installation since it can interfere
# with the cargotest step and its auto-detection of things like Clippy in
# the environment
rustup self uninstall -y || true
if [ "$IMAGE" = "" ]; then
src/ci/run.sh
else