# Test against this version of Node.js
environment:
  matrix:
    # node.js
    - nodejs_version: "5"
    - nodejs_version: "4"

# Install scripts. (runs after repo cloning)
install:
  # Get the latest stable version of Node.js or io.js
  - ps: Install-Product node $env:nodejs_version
  # install modules
  - npm install

# Post-install test scripts.
test_script:
  # run tests
  - npm test

# artifacts:
#   - path: ./junit/xunit.xml
#   - path: ./xunit.xml

# nothing to compile in this project
build: off
deploy: off

# Test against this version of Node.js
environment:
  matrix:
    # node.js
    - nodejs_version: "5"
    - nodejs_version: "4"

# Install scripts. (runs after repo cloning)
install:
  # Get the latest stable version of Node.js or io.js
  - ps: Install-Product node $env:nodejs_version
  # install modules
  - npm install
  # remove unused modules from node_modules directory
  - npm prune

# Post-install test scripts.
test_script:
  # run tests
  - npm test

# artifacts:
#   - path: ./junit/xunit.xml
#   - path: ./xunit.xml

# nothing to compile in this project
build: off
deploy: off

cache:
  - node_modules

Add node_modules caching to AppVeyor
Add node_modules caching to AppVeyor
