os: Visual Studio 2019
version: "{build}"
build: off
platform: x86
environment:
  matrix:
  - nodejs_version: "12"
    prebuild: true
  - nodejs_version: "14"
  - nodejs_version: "16"
install:
  - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
  - npm install --build-from-source
test_script:
  - npm test
on_success:
  - if [%prebuild%] == [true] if [%APPVEYOR_REPO_TAG%] == [true] npx prebuild --runtime napi --target 5
