# Test against the latest version of this Node.js version
environment:
  matrix:
    - nodejs_version: "0.12"
    - nodejs_version: "4"
    - nodejs_version: "6"
    - nodejs_version: "8"
    - nodejs_version: "9"

# 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
  - npm run rebuild # Ensure this is not a downloaded build!

# Disable appveyor's build step.
build: off

# Post-install test scripts.
test_script:
  # Output useful info for debugging.
  - node --version
  - npm --version

  # Run tests
  - ps: npm run unit
  - ps: npm run integration
