# 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: "8"
      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

# 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"
      # Empty version installs most recent version available
    - nodejs_version: ""
      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

Use latest node version with AppVeyor
Use latest node version with AppVeyor

If the version is not specified, the latest version is installed.  That
is the version I want to test against, so do that.

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