environment:
  matrix:
  - TARGET: x86_64-pc-windows-msvc
  - TARGET: x86_64-pc-windows-gnu
  - TARGET: i686-pc-windows-msvc
  - TARGET: i686-pc-windows-gnu

install:
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
  - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
  - SET PATH=%PATH%;C:\MinGW\bin
  - rustc -Vv
  - cargo -V

build_script:
  - if "%TARGET%" == "x86_64-pc-windows-msvc" cargo build --verbose
  - if "%TARGET%" == "i686-pc-windows-msvc" cargo build --verbose
  - if "%TARGET%" == "x86_64-pc-windows-gnu" cargo build --verbose --features lints
  - if "%TARGET%" == "i686-pc-windows-gnu" cargo build --verbose --features lints
  - cargo package

test_script:
  - cargo test --verbose

environment:
  matrix:
  #- TARGET: x86_64-pc-windows-msvc
  - TARGET: x86_64-pc-windows-gnu
  #- TARGET: i686-pc-windows-msvc
  - TARGET: i686-pc-windows-gnu

install:
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
  - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
  - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
  - SET PATH=%PATH%;C:\MinGW\bin
  - rustc -Vv
  - cargo -V

build_script:
  - cargo build --verbose --features lints
  - cargo package

test_script:
  - cargo test --verbose --features lints

Disable msvc builds for now
Disable msvc builds for now
