1# Appveyor configuration template for Rust using rustup for Rust installation 2# https://github.com/starkat99/appveyor-rust 3 4## Operating System (VM environment) ## 5 6# Rust needs at least Visual Studio 2013 Appveyor OS for MSVC targets. 7os: Visual Studio 2015 8 9## Build Matrix ## 10environment: 11 matrix: 12 13### MSVC Toolchains ### 14 # Stable 64-bit MSVC 15 - channel: stable 16 target: x86_64-pc-windows-msvc 17 # Stable 32-bit MSVC 18 - channel: stable 19 target: i686-pc-windows-msvc 20 # Beta 64-bit MSVC 21 - channel: beta 22 target: x86_64-pc-windows-msvc 23 # Beta 32-bit MSVC 24 - channel: beta 25 target: i686-pc-windows-msvc 26 # Nightly 64-bit MSVC 27 - channel: nightly 28 target: x86_64-pc-windows-msvc 29 # Nightly 32-bit MSVC 30 - channel: nightly 31 target: i686-pc-windows-msvc 32 33### GNU Toolchains ### 34 35 # Stable 64-bit GNU 36 - channel: stable 37 target: x86_64-pc-windows-gnu 38 # Stable 32-bit GNU 39 - channel: stable 40 target: i686-pc-windows-gnu 41 # Beta 64-bit GNU 42 - channel: beta 43 target: x86_64-pc-windows-gnu 44 # Beta 32-bit GNU 45 - channel: beta 46 target: i686-pc-windows-gnu 47 # Nightly 64-bit GNU 48 - channel: nightly 49 target: x86_64-pc-windows-gnu 50 # Nightly 32-bit GNU 51 - channel: nightly 52 target: i686-pc-windows-gnu 53 54## Install Script ## 55install: 56 - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe 57 - rustup-init -yv --default-toolchain %channel% --default-host %target% 58 - set PATH=%PATH%;%USERPROFILE%\.cargo\bin 59 - rustc -vV 60 - cargo -vV 61 62## Build Script ## 63 64# This prevents the "directory does not contain a project or solution file" 65# error. 66build: false 67 68# Uses 'cargo build' to build. AppVeyor cannot run tests on this crate as it 69# redirects the console's output, and its state then cannot be retrieved, let 70# alone modified. 71test_script: 72 - cargo build --verbose %cargoflags% 73