image: Previous Visual Studio 2017
environment:
  matrix:
    - nodejs_version: "8"
    - nodejs_version: "10"
    - nodejs_version: "11"
platform:
  - x86
  - x64
install:
  - ps: Install-Product node $env:nodejs_version
  - md public
  - npm install --global --production windows-build-tools
  - npm install
build_script:
  - npm run build
test_script:
  - npm run lint

image: Visual Studio 2015
environment:
  matrix:
    - nodejs_version: "8"
    - nodejs_version: "10"
    - nodejs_version: "11"
platform:
  - x86
  - x64
install:
  - ps: Install-Product node $env:nodejs_version
  - md public
  - npm --vs2015 install --global windows-build-tools
  - npm install
build_script:
  - npm run build
test_script:
  - npm run lint

Use Visual Studio 2015 for Appveyor
Use Visual Studio 2015 for Appveyor