build: off
shallow_clone: true
version: "{build}"

init:
  - git config --global core.autocrlf input

environment:
  matrix:
    - nodejs_version: "0.8"
    - nodejs_version: "0.10"
    - nodejs_version: "0.11"

matrix:
  allow_failures:
    - nodejs_version: "0.11"

install:
  - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
  # Otherwise it won’t use the updated npm version
  - SET PATH=%APPDATA%\npm;%PATH%
  - npm install -g npm
  - npm install -g grunt-cli
  - npm install
  - .\node_modules\.bin\node-gyp install

test_script:
  - node --version
  - npm --version
  - cmd: grunt test

build: off
shallow_clone: true
version: "{build}"

init:
  - git config --global core.autocrlf input

environment:
  matrix:
    - nodejs_version: "0.8"
    - nodejs_version: "0.10"
    - nodejs_version: "0.11"

matrix:
  allow_failures:
    - nodejs_version: "0.11"

install:
  - ps: Install-Product node $env:nodejs_version
  # Otherwise it won’t use the updated npm version
  - SET PATH=%APPDATA%\npm;%PATH%
  - npm install -g npm
  - npm install -g grunt-cli
  - npm install
  - .\node_modules\.bin\node-gyp install

test_script:
  - node --version
  - npm --version
  - cmd: grunt test

Use a faster way to switch the Node.js version on AppVeyor
Use a faster way to switch the Node.js version on AppVeyor

See http://help.appveyor.com/discussions/suggestions/266-nodejs-versions-should-be-preloaded#comment_35655400.
