]> git.lizzy.rs Git - rust.git/commitdiff
sync AppVeyor CI script with Travis
authorRalf Jung <post@ralfj.de>
Sat, 28 Sep 2019 15:36:20 +0000 (11:36 -0400)
committerRalf Jung <post@ralfj.de>
Sat, 28 Sep 2019 15:36:20 +0000 (11:36 -0400)
.appveyor.yml

index 391ff042daf41d8a24255a84cdcbea600e9358d3..c3d575403cb3ddef70075c371ff99c6dead47bd2 100644 (file)
@@ -17,16 +17,21 @@ cache:
     - '%USERPROFILE%\.rustup'
 
 install:
+    # Compute the rust version we use
+    - set /p RUSTC_HASH=<rust-version
     # Install Rust
     - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
     - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable
     - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
+    - rustup default stable
+    - rustup uninstall beta
+    - rustup update
     # Install "master" toolchain
     - cargo install rustup-toolchain-install-master & exit 0
-    - set /p RUSTC_HASH=<rust-version
     - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
     - rustup default master
     - rustc --version
+    - cargo --version
 
 build_script:
     - set RUSTFLAGS=-C debug-assertions