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

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

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@^3
  - appveyor-retry choco install phantomjs
  - 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:
  # Output useful info for debugging.
  - git rev-parse HEAD
  - cmd: yarn run test-all

# Don't actually build.
build: off

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

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

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

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@^3
  - appveyor-retry choco install phantomjs
  - 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:
  # Output useful info for debugging.
  - git rev-parse HEAD
  - cmd: yarn run test-all

# Don't actually build.
build: off

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

Allow node 7.x on Windows
Allow node 7.x on Windows

Windows users have been getting
`WARNING: Node v7.9.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js.`
even on the latest versions because `appveyor.yml` versions was not updated when `travis.yml` was.