# https://docs.microsoft.com/vsts/pipelines/languages/javascript

pool:
  vmImage: "vs2017-win2016"

strategy:
  maxParallel: 3
  matrix:
    node_10_x:
      node_version: "10.x"
    node_8_x:
      node_version: "8.x"
    node_6_x:
      node_version: "6.x"

steps:
  - task: NodeTool@0
    inputs:
      versionSpec: $(node_version)
    displayName: "Install Node.js"

  - script: git config --global user.email test@example.com
  - script: git config --global user.name "Tester McPerson"
  - script: npm -g i npm@latest --loglevel warn
  - script: npm -g i yarn@latest
  - script: npm ci
  - script: npm run ci

# https://docs.microsoft.com/vsts/pipelines/languages/javascript

pool:
  vmImage: "vs2017-win2016"

strategy:
  maxParallel: 3
  matrix:
    node_10_x:
      node_version: "10.x"
    node_8_x:
      node_version: "8.x"
    node_6_x:
      node_version: "6.x"

steps:
  - task: NodeTool@0
    inputs:
      versionSpec: $(node_version)
    displayName: "Install Node.js"

  - script: |
      git config --global core.autocrlf true
      git config --global user.email test@example.com
      git config --global user.name "Tester McPerson"
    displayName: "Configure git"

  - script: npm config set loglevel warn
  - script: npm -g i npm@latest
  - script: npm -g i yarn@latest
  - script: npm ci
  - script: npm run ci

Set core.autoCRLF -> true so Windows stops failing lint
chore(ci): Set core.autoCRLF -> true so Windows stops failing lint
