branches:
  except:
    - gh-pages

environment:
  OPTIONS: 'windows ia32 x64'
  matrix:
    - nodejs_version: 7

image: Visual Studio 2015

clone_folder: C:\Projects\Main

clone_depth: 1

install:
  - cmd: echo "Repo URL" && git remote get-url origin
  - cmd: dir
  - ps: Install-Product node $env:nodejs_version
  - cmd: IF %nodejs_version% EQU 0.8 npm -g install npm@2
  - cmd: IF %nodejs_version% EQU 0.8 set PATH=%APPDATA%\npm;%PATH%
  - cmd: npm -g install npm
  - cmd: IF %nodejs_version% NEQ 0.8 set PATH=%APPDATA%\npm;%PATH%
  - cmd: npm install

test_script:
  - cmd: echo "NodeJS version" && node --version
  - cmd: echo "NPM version" && npm --version
  - cmd: echo "Test" && npm test

build_script:
  - cmd: npm run pack
  - cmd: dir
  - cmd: dir dist
  - cmd: tree dist

artifacts:
  - path: dist\*.*
  - path: dist\win\*.*

deploy:
  - provider: GitHub
    draft: false
    prerelease: false
    auth_token: $(GITHUB_RELEASE_OAUTH)
    on:
      appveyor_repo_tag: true

branches:
  except:
    - gh-pages

environment:
  OPTIONS: 'windows ia32 x64'
  matrix:
    - nodejs_version: 7

image: Visual Studio 2015

clone_folder: C:\Projects\Main

clone_depth: 1

install:
  - cmd: echo "Repo URL" && git remote get-url origin
  - cmd: dir
  - ps: Install-Product node $env:nodejs_version
  - cmd: IF %nodejs_version% EQU 0.8 npm -g install npm@2
  - cmd: IF %nodejs_version% EQU 0.8 set PATH=%APPDATA%\npm;%PATH%
  - cmd: npm -g install npm
  - cmd: IF %nodejs_version% NEQ 0.8 set PATH=%APPDATA%\npm;%PATH%
  - cmd: npm install

test_script:
  - cmd: echo "NodeJS version" && node --version
  - cmd: echo "NPM version" && npm --version
  - cmd: echo "Test" && npm test

build_script:
  - cmd: npm run pack
  - cmd: dir
  - cmd: tree /f /a dist

artifacts:
  - path: dist\*.*
  - path: dist\win\*.*

deploy:
  - provider: GitHub
    draft: false
    prerelease: false
    auth_token: $(GITHUB_RELEASE_OAUTH)
    on:
      appveyor_repo_tag: true

Use 'tree /f /a' instead
Use 'tree /f /a' instead
