]> git.lizzy.rs Git - rust.git/blob - appveyor.yml
Merge pull request #1568 from mathstuf/suffixes-typo
[rust.git] / appveyor.yml
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
3 \r
4 environment:\r
5   global:\r
6     PROJECT_NAME: rustfmt\r
7   matrix:\r
8     # Stable channel\r
9     - TARGET: i686-pc-windows-gnu\r
10       CHANNEL: stable\r
11     - TARGET: i686-pc-windows-msvc\r
12       CHANNEL: stable\r
13     - TARGET: x86_64-pc-windows-gnu\r
14       CHANNEL: stable\r
15     - TARGET: x86_64-pc-windows-msvc\r
16       CHANNEL: stable\r
17     # Beta channel\r
18     - TARGET: i686-pc-windows-gnu\r
19       CHANNEL: beta\r
20     - TARGET: i686-pc-windows-msvc\r
21       CHANNEL: beta\r
22     - TARGET: x86_64-pc-windows-gnu\r
23       CHANNEL: beta\r
24     - TARGET: x86_64-pc-windows-msvc\r
25       CHANNEL: beta\r
26     # Nightly channel\r
27     - TARGET: i686-pc-windows-gnu\r
28       CHANNEL: nightly\r
29     - TARGET: i686-pc-windows-msvc\r
30       CHANNEL: nightly\r
31     - TARGET: x86_64-pc-windows-gnu\r
32       CHANNEL: nightly\r
33     - TARGET: x86_64-pc-windows-msvc\r
34       CHANNEL: nightly\r
35 \r
36 # Install Rust and Cargo\r
37 # (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)\r
38 install:\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
47   - rustc -V\r
48   - cargo -V\r
49 \r
50 # ???\r
51 build: false\r
52 \r
53 # Build rustfmt, run the executables as\r
54 test_script:\r
55   - cargo build --verbose\r
56   - cargo run --bin rustfmt -- --help\r
57   - cargo run --bin cargo-fmt -- --help\r
58   - cargo test\r