environment:
  matrix:
    - RUST: stable
      BITS: 32
      TARGET: pc-windows-gnu
    - RUST: stable
      BITS: 64
      TARGET: pc-windows-gnu

install:
  - IF "%BITS%" == "32" SET ARCH=i686
  - IF "%BITS%" == "64" SET ARCH=x86_64
  - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  - rustup-init -yv --default-toolchain %RUST% --default-host %ARCH%-%TARGET%
  - set PATH=%PATH%;%USERPROFILE%\.cargo\bin
  - rustc -V
  - cargo -V

build_script:
  - mkdir .cargo
  - echo paths = ["."] > .cargo\config
  - cargo build
  - cargo test
  - cargo doc

test: false
