1 # This is based on https://github.com/japaric/rust-everywhere/blob/master/appveyor.yml
\r
2 # and modified (mainly removal of deployment) to suit rustfmt.
\r
6 PROJECT_NAME: rustfmt
\r
9 - TARGET: i686-pc-windows-gnu
\r
11 - TARGET: i686-pc-windows-msvc
\r
13 - TARGET: x86_64-pc-windows-gnu
\r
15 - TARGET: x86_64-pc-windows-msvc
\r
18 - TARGET: i686-pc-windows-gnu
\r
20 - TARGET: i686-pc-windows-msvc
\r
22 - TARGET: x86_64-pc-windows-gnu
\r
24 - TARGET: x86_64-pc-windows-msvc
\r
27 - TARGET: i686-pc-windows-gnu
\r
29 - TARGET: i686-pc-windows-msvc
\r
31 - TARGET: x86_64-pc-windows-gnu
\r
33 - TARGET: x86_64-pc-windows-msvc
\r
36 # Install Rust and Cargo
\r
37 # (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
\r
39 - ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable"
\r
40 - ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
\r
41 - if NOT "%CHANNEL%" == "stable" set RUST_VERSION=%CHANNEL%
\r
42 - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe"
\r
43 - rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
\r
44 - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
\r
45 - if "%TARGET%" == "i686-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw32\bin
\r
46 - if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin
\r
53 # Build rustfmt, run the executables as
\r
55 - cargo build --verbose
\r
56 - cargo run --bin rustfmt -- --help
\r
57 - cargo run --bin cargo-fmt -- --help
\r