os: Visual Studio 2015

environment:
  NODEJS_VERSION: "6"

platform:
  - x86
  - x64

install:
  - ps: Install-Product node $env:NODEJS_VERSION $env:PLATFORM
  - node -e "console.log(process.arch, process.versions)"

  - curl -sSf -o rustup-init.exe https://win.rustup.rs
  - rustup-init.exe -y
  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  - rustc -V
  - cargo -V

build: false

test_script:
  - cd tests
  - npm test

cache:
  - target
  - C:\Users\appveyor\.cargo\registry

os: Visual Studio 2015

platform: x64

environment:
  NODEJS_VERSION: "6"
  matrix:
    - NODE_ARCHITECTURE: x64
      RUST_TOOLCHAIN: stable-x86_64-pc-windows-msvc

    - NODE_ARCHITECTURE: x86
      RUST_TOOLCHAIN: stable-i686-pc-windows-msvc

install:
  - ps: Install-Product node $env:NODEJS_VERSION $env:NODE_ARCHITECTURE
  - node -e "console.log(process.arch, process.versions)"

  - curl -sSf -o rustup-init.exe https://win.rustup.rs
  - rustup-init.exe -y --default-toolchain %RUST_TOOLCHAIN%
  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  - rustup show
  - rustc -V
  - cargo -V

build: false

test_script:
  - cd tests
  - npm test

cache:
  - target
  - C:\Users\appveyor\.cargo\registry

Build on x64 on AppVeyor but compile for x86 as well
Build on x64 on AppVeyor but compile for x86 as well
