# Good template: https://github.com/gruntjs/grunt/blob/master/appveyor.yml
environment:
  matrix:
    - nodejs_version: 0.10
    - nodejs_version: 0.12

# Get the latest stable version of Node 0.STABLE.latest
install:
  - ps: Install-Product node $env:nodejs_version
  # Install and use local, modern NPM
  - npm install npm@next
  - node_modules\.bin\npm install

build: off

branches:
  only:
    - master

test_script:
  # Build environment.
  - node --version
  - node_modules\.bin\npm --version

  # Build and test.
  - node_modules\.bin\npm test

matrix:
  fast_finish: true

cache:
  - node_modules -> package.json   # local npm modules
