environment:
  node_pre_gyp_accessKeyId:
    secure: Dn9HKdLNYvDgPdQOzRq/DqZ/MPhjknRHB1o+/lVU8MA=
  node_pre_gyp_secretAccessKey:
    secure: W1rwNoSnOku1r+28gnoufO8UA8iWADmL1LiiwH9IOkIVhDTNGdGPJqAlLjNqwLnL
  matrix:
    - nodejs_version: 0.10.29
      nw_version: 0.8.6
    - nodejs_version: 0.8.26
    - nodejs_version: 0.11.13
      nw_version: 0.10.0

platform:
  - x64
  - x86

install:
  - ps: Update-NodeJsInstallation $env:nodejs_version $env:Platform
  - node --version
  - npm --version
  - SET PATH=c:\python27;%PATH%
  - SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%
  # add local node-pre-gyp dir to path
  - SET PATH=node_modules\.bin;%PATH%
  # otherwise node-gyp that comes with node v0.8.x is used and doesn't yet know about --msvs_version=2013
  - npm install node-gyp
  - npm install --build-from-source  --msvs_version=2013
  - npm test
  - node-pre-gyp package
  # make commit message env var shorter
  - SET CM=%APPVEYOR_REPO_COMMIT_MESSAGE%
  - if not "%CM%" == "%CM:[publish binary]=%" node-pre-gyp --msvs_version=2013 publish
  - if not "%PLATFORM%" == "x86" set nw_version=
  - if not "%nw_version%" == "" call scripts\build_for_node_webkit.cmd

build: OFF
test: OFF
deploy: OFF
