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

# Test against these versions of Node.js.
environment:
  matrix:
    - nodejs_version: "4.1"
    - nodejs_version: "4.2"
    - nodejs_version: "5"

branches:
  except:
    - /^v[0-9]/

# Install scripts. (runs after repo cloning)
install:
  # Get the latest stable version of Node 0.STABLE.latest
  - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
  # Always use latest npm.
  - npm install -g npm
  # Typical npm stuff.
  - npm install

# Post-install test scripts.
test_script:
  # Output useful info for debugging.
  - node --version
  - npm --version
  # We test multiple Windows shells because of Node.js stdout buffering issues:
  # https://github.com/joyent/node/issues/3584
  - ps: "npm run ci-build #PowerShell" # Pass comment to PS for easier debugging
  - cmd: npm run ci-build

# Don't actually build any .NET.
build: off

# Talk to Slack.
notifications:
  - provider: Slack
    auth_token:
      secure: jpmRZ9H5UGhAGstWdj0WWiLoz+NyL6+QrGVyzEkRkKLnwxi1ULuqkxSQ63D3LGr3eL2GiHbvxg5lzdrdirt82g==
    channel: mozu-build-status
