environment:
  matrix:
    - nodejs_version: "0.10"
    - nodejs_version: "0.12"
    - nodejs_version: "2.5"
    - nodejs_version: "3.0"

install:
  # From https://github.com/nodejs/nan/blob/master/appveyor.yml
  - ps: Install-Product node $env:nodejs_version
  - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
  - IF %nodejs_version% LSS 1 npm -g install npm
  - IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
  - npm run prepublish
  - npm install

test_script:
  - npm test

build: off

version: "{build}"

environment:
  matrix:
    - nodejs_version: "0.10"
    - nodejs_version: "0.12"
      platform: x86
    - nodejs_version: "0.12"
      platform: x64
    - nodejs_version: "2.5"
    - nodejs_version: "3.0"
      platform: x86
    - nodejs_version: "3.0"
      platform: x64

matrix:
  allow_failures:
    - nodejs_version: "0.10"

install:
  # From https://github.com/nodejs/nan/blob/master/appveyor.yml
  - ps: Install-Product node $env:nodejs_version
  - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
  - IF %nodejs_version% LSS 1 npm -g install npm
  - IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
  - npm run prepublish
  - npm install

test_script:
  - npm test

build: off

version: "{build}"

Test both x86 and x64 builds on windows
Test both x86 and x64 builds on windows
