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

environment:
  matrix:
    - nodejs_version: "8"
  IE_BIN: "%PROGRAMFILES%\\Internet Explorer\\iexplore.exe"

version: "{build}-{branch}"

init:
  - git config --global core.longpaths true
  - dir "%PROGRAMFILES%\Internet Explorer"
  - set

clone_depth: 1

matrix:
  fast_finish: true

cache:
  - node_modules

install:
  - ps: Install-Product node $env:nodejs_version
  - appveyor DownloadFile "https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick-binaries/1.3.31/GraphicsMagick-1.3.31-Q16-win64-dll.exe"
  - GraphicsMagick-1.3.31-Q16-win64-dll.exe /SP /VERYSILENT /NORESTART /NOICONS /DIR=%CD%\gm
  - set PATH=%CD%\gm;%PATH%
  - npm install

test_script:
  - node --version
  - npm --version
  - gm version
  - npm run lint
  - npm test

build: off

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

environment:
  matrix:
    - nodejs_version: "10"
  IE_BIN: "%PROGRAMFILES%\\Internet Explorer\\iexplore.exe"

version: "{build}-{branch}"

init:
  - git config --global core.longpaths true
  - dir "%PROGRAMFILES%\Internet Explorer"
  - set

clone_depth: 1

matrix:
  fast_finish: true

cache:
  - node_modules

install:
  - ps: Install-Product node $env:nodejs_version
  - appveyor DownloadFile "https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick-binaries/1.3.31/GraphicsMagick-1.3.31-Q16-win64-dll.exe"
  - GraphicsMagick-1.3.31-Q16-win64-dll.exe /SP /VERYSILENT /NORESTART /NOICONS /DIR=%CD%\gm
  - set PATH=%CD%\gm;%PATH%
  - npm install

test_script:
  - node --version
  - npm --version
  - gm version
  - npm run lint
  - npm test

build: off

Upgrade Node.js version 8 -> 10 at Appveyor
Upgrade Node.js version 8 -> 10 at Appveyor
