-# This is based on https://github.com/japaric/rust-everywhere/blob/master/appveyor.yml\r
-# and modified (mainly removal of deployment) to suit rustfmt.\r
-\r
-environment:\r
- global:\r
- PROJECT_NAME: rustfmt\r
- matrix:\r
- # Stable channel\r
- - TARGET: i686-pc-windows-gnu\r
- CHANNEL: stable\r
- - TARGET: i686-pc-windows-msvc\r
- CHANNEL: stable\r
- - TARGET: x86_64-pc-windows-gnu\r
- CHANNEL: stable\r
- - TARGET: x86_64-pc-windows-msvc\r
- CHANNEL: stable\r
- # Beta channel\r
- - TARGET: i686-pc-windows-gnu\r
- CHANNEL: beta\r
- - TARGET: i686-pc-windows-msvc\r
- CHANNEL: beta\r
- - TARGET: x86_64-pc-windows-gnu\r
- CHANNEL: beta\r
- - TARGET: x86_64-pc-windows-msvc\r
- CHANNEL: beta\r
- # Nightly channel\r
- - TARGET: i686-pc-windows-gnu\r
- CHANNEL: nightly\r
- - TARGET: i686-pc-windows-msvc\r
- CHANNEL: nightly\r
- - TARGET: x86_64-pc-windows-gnu\r
- CHANNEL: nightly\r
- - TARGET: x86_64-pc-windows-msvc\r
- CHANNEL: nightly\r
-\r
-# Install Rust and Cargo\r
-# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)\r
-install:\r
- - ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable"\r
- - ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}\r
- - if NOT "%CHANNEL%" == "stable" set RUST_VERSION=%CHANNEL%\r
- - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe"\r
- - rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"\r
- - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin\r
- - if "%TARGET%" == "i686-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw32\bin\r
- - if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin\r
- - rustc -V\r
- - cargo -V\r
-\r
-# ???\r
-build: false\r
-\r
-# Build rustfmt, run the executables as\r
-test_script:\r
- - cargo build --verbose\r
- - cargo run --bin rustfmt -- --help\r
- - cargo run --bin cargo-fmt -- --help\r
- - cargo test\r
+environment:
+ global:
+ PROJECT_NAME: rustfmt
+
+build: false
+
+test_script:
+ - echo Why does no one have access to delete me?