version: "{build}"

# Do not attempt to build a project
build: off

# Test against these versions of Node.js.
environment:
  matrix:
    - nodejs_version: "0.12"

install:
  # Get the latest stable version of Node 0.STABLE.latest
  - ps: Install-Product node $env:nodejs_version
  # Typical npm stuff.
  - md C:\nc
  - npm install -g npm@latest
  - npm install -g bower
  # Workaround https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
  - set PATH=%APPDATA%\npm;%PATH%
  - npm config set cache C:\nc
  - npm version
  - npm install
  - bower install

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

version: "{build}"

# Do not attempt to build a project
build: off

cache:
  - node_modules -> package.json
  - bower_components -> bower.json

# Test against these versions of Node.js.
environment:
  matrix:
    - nodejs_version: "0.12"

install:
  # Get the latest stable version of Node 0.STABLE.latest
  - ps: Install-Product node $env:nodejs_version
  # Typical npm stuff.
  - md C:\nc
  - npm install -g npm@latest
  - npm install -g bower
  # Workaround https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
  - set PATH=%APPDATA%\npm;%PATH%
  - npm config set cache C:\nc
  - npm version
  - npm install
  - bower install

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

Allow caching of node_modules and bower_components.
Allow caching of node_modules and bower_components.

Following instructions on http://www.appveyor.com/docs/build-cache.

`node_modules` cache should invalidate if `package.json` changes, and
`bower_components` cache should invalidate if `bower.json` changes.
