From 61c3520d7099c91f749aa007366cf780de4f2aea Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Fri, 21 Jun 2019 15:50:30 +0200 Subject: [PATCH] Try using a slightly more modern yml to address appveyor build bug This uses the script from here with all comments stripped: https://github.com/starkat99/appveyor-rust/ The beta targets have also been removed to keep build times low. --- appveyor.yml | 44 +++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4da63d8..fa825fb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,16 +1,38 @@ +os: Visual Studio 2015 + +environment: + matrix: + # MSVC + - channel: stable + target: x86_64-pc-windows-msvc + - channel: stable + target: i686-pc-windows-msvc + - channel: nightly + target: x86_64-pc-windows-msvc + - channel: nightly + target: i686-pc-windows-msvc + # GNU + - channel: stable + target: x86_64-pc-windows-gnu + - channel: stable + target: i686-pc-windows-gnu + - channel: nightly + target: x86_64-pc-windows-gnu + - channel: nightly + target: i686-pc-windows-gnu + +matrix: + allow_failures: + - channel: nightly + install: - - ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe' - - ps: Start-FileDownload 'https://static.rust-lang.org/cargo-dist/cargo-nightly-i686-pc-windows-gnu.tar.gz' - - rust-nightly-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - - 7z e cargo-nightly-i686-pc-windows-gnu.tar.gz - - 7z x cargo-nightly-i686-pc-windows-gnu.tar - - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - - SET PATH=%PATH%;%CD%\cargo-nightly-i686-pc-windows-gnu\bin - - rustc -V - - cargo -V + - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init -yv --default-toolchain %channel% --default-host %target% + - set PATH=%PATH%;%USERPROFILE%\.cargo\bin + - rustc -vV + - cargo -vV build: false test_script: - - cargo build --verbose -# - cargo test --verbose +- cargo test --verbose %cargoflags%