From 5cb2b7882c617df8356e558cb380551880be3f04 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Tue, 28 Feb 2017 13:22:38 +0100 Subject: [PATCH] Rust Appveyor CI --- .ci/appveyor.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.ci/appveyor.yml b/.ci/appveyor.yml index c075afbe5a..482d061f5e 100644 --- a/.ci/appveyor.yml +++ b/.ci/appveyor.yml @@ -4,6 +4,7 @@ environment: # /E:ON and /V:ON options are not enabled in the batch script intepreter # See: http://stackoverflow.com/a/13751649/163740 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\.ci\\run_with_env.cmd" + RUST_TOOLCHAIN: "nightly-2017-07-20-x86_64-pc-windows-msvc" matrix: - PYTHON: "C:\\Python34" @@ -49,6 +50,21 @@ install: - "npm config set loglevel warn" - "npm install" + - "curl -sSf -o rustup-init.exe https://win.rustup.rs/" + - "rustup-init.exe -y --default-toolchain=%RUST_TOOLCHAIN%" + # Normally, we shouldn't need the toolchain lib directory in our PATH + # https://github.com/rust-lang-nursery/rustup.rs/issues/876 + # This is actually the sole reason that we really + # need the RUST_TOOLCHAIN variable. + - "set PATH=%PATH%;C:\\Users\\appveyor\\.cargo\\bin;C:\\Users\\appveyor\\.rustup\\toolchains\\%RUST_TOOLCHAIN%\\bin;C:\\Users\\appveyor\\.rustup\\toolchains\\%RUST_TOOLCHAIN%\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" + - "cargo install clippy --vers 0.0.144" + + # Print rust and cargo parameters for quick debugging. + - where rustc cargo + - rustc -vV + - cargo -vV + - cargo clippy -V + build: false # Not a C# project, build stuff at the test step instead. test_script: