# http://www.appveyor.com/docs/appveyor-yml

# Be aware of https://github.com/nodejs/LTS when choosing versions to test
# Update engines.node in package.json if removing old versions.
environment:
  matrix:
    - nodejs_version: "0.10"
    - nodejs_version: "0.12"
    - nodejs_version: "7"

# If the package has arch-dependent features, uncomment this.
#platform:
#  - x86
#  - x64

install:
  - ps: Install-Product node $env:nodejs_version
  - npm -g install npm
  - npm install

test_script:
  - node --version
  - npm --version
  - npm test

# Disable build step, which we don't need
build: off

# If any job fails, fail build immediately to avoid wasting time/resources.
matrix:
  fast_finish: true

# http://www.appveyor.com/docs/appveyor-yml

# Be aware of https://github.com/nodejs/LTS when choosing versions to test
# Update engines.node in package.json if removing old versions.
environment:
  matrix:
    - nodejs_version: "0.10"
      # 4.6.1 fails on Node 0.10 with "Object [...] has no method 'toLowerCase'"
      npm_version: "^4.5"
    - nodejs_version: "0.12"
      # 4.6.1 fails on Node 0.12 due to exit code of recursive npm run
      npm_version: "^4.5"
    - nodejs_version: "7"
      npm_version: "latest"

# If the package has arch-dependent features, uncomment this.
#platform:
#  - x86
#  - x64

install:
  - ps: Install-Product node $env:nodejs_version
  - npm -g install npm@%npm_version%
  - npm install

test_script:
  - node --version
  - npm --version
  - npm test

# Disable build step, which we don't need
build: off

# If any job fails, fail build immediately to avoid wasting time/resources.
matrix:
  fast_finish: true

Set npm version for AppVeyor builds
Set npm version for AppVeyor builds

The most recent version of npm (4.6.1) fails to install on Node 0.10 and
fails the build on Node 0.12.  Pin the version of npm used with Node
0.10 and 0.12 to npm 4.5.

Signed-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>
