# See https://github.com/ignacio/lua-appveyor-example for reference
clone_depth: 1

init:
  - '"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat""'
  - set PATH=C:\Python27\Scripts;%PATH%

cache:
  # - .lua -> .appveyor.yml
  - c:\cache -> .appveyor.yml

install:
  - pip install hererocks codecov
  - hererocks .lua -l5.1 -rlatest --downloads c:\cache\d --builds c:\cache\bat
  - .lua\bin\activate
  - luarocks install busted
  - luarocks install cluacov
  - luarocks install luacheck

build: off

test_script:
  - luacheck .
  - busted

after_test:
  - codecov -X gcov
