os: Visual Studio 2017
version: "{build}"
build: off
skip_tags: true

environment:
  matrix:
    - arch: x86_64
      bits: 64
      nodejs_version: 12
    - arch: i686
      bits: 32
      nodejs_version: 12

platform:
  - x64
  # - x86

install:
  - set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
  - ps: Install-Product node $env:nodejs_version $env:platform
  - npm -g i npm@latest
  # TEMPORARY CHANGE: UNCOMMENT NEXT LINE AND REMOVE THE FOLLOWING ONE BEFORE MERGING
  #- npm i -D --ignore-scripts
  - npm i -D --ignore-scripts --expose-internals
  - for /f %%i in ('node -v') do set exact_nodejs_version=%%i
  - npm run build
  # - npm run test || travis_terminate 1
  - npm run deploy
#on_success:
# - for %%i in (prebuilds\*) do appveyor PushArtifact %%i
