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

image: Visual Studio 2017

# Test against these versions of Node.js.
environment:
  MOCHA_REPORTER: "mocha-appveyor-reporter"
  matrix:
    - nodejs_version: "6"
    - nodejs_version: "8"
    - nodejs_version: "10"

matrix:
  fast_finish: true

branches:
  only:
    - master
    - beta
    - release

# Install scripts. (runs after repo cloning)
install:
  - ps: Install-Product node $env:nodejs_version
  - appveyor-retry npm i -g npm@^4
  - appveyor-retry yarn
  - appveyor-retry yarn add mocha-appveyor-reporter # must be installed locally.

cache:
  - '%LOCALAPPDATA%\Yarn'
  - '%APPDATA%\Roaming\bower'

# Post-install test scripts.
test_script:
  - cmd: yarn test:all

# Don't actually build.
build: off

# Set build version format here instead of in the admin panel.
version: "{build}"
