# http://www.appveyor.com/docs/appveyor-yml

environment:
  matrix:
    - nodejs_version: "12"
    - nodejs_version: "11"
    - nodejs_version: "10"
    - nodejs_version: "9"
    - nodejs_version: "8"

platform:
  - x86
  - x64

install:
  # Get the latest stable version of Node.js
  - ps: Install-Product node $env:nodejs_version $env:platform
  - npm i -g yarn
  - set PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
  # install modules
  - yarn install --ignore-scripts
  # build
  - prebuild --strip

test_script:
  # Output useful info for debugging.
  - node --version
  - npm --version
  - yarn --version
  # run tests
  - npm test

on_success:
  - for %%i in (prebuilds\*) do appveyor PushArtifact %%i

# Don't actually build.
build: off
skip_tags: true
version: "{build}"
