shallow_clone: true

environment:
  matrix:
  - LUA: "lua 5.1"
  - LUA: "lua 5.2 --compat none"
  - LUA: "lua 5.3 --compat none"
  - LUA: "luajit 2.0"
  - LUA: "luajit 2.1"

matrix:
  fast_finish: true

install:
  - set PATH=%CD%\env\bin;C:\Python27\Scripts;%PATH%
  - pip install hererocks
  - hererocks env --%LUA%

init:
- set generator="Visual Studio 14 2015 Win64"

before_build:
- mkdir build
- cd build
- cmake -G %generator% ..

build_script:
- cmake --build . --config Release

after_build:
- cmake --build . --config Release --target install

test_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- lua runtests.lua

shallow_clone: true

environment:
  matrix:
  - LUA: "lua 5.1"
  - LUA: "lua 5.2 --compat none"
  - LUA: "lua 5.3 --compat none"
  - LUA: "luajit 2.0"
  - LUA: "luajit 2.1"

matrix:
  fast_finish: true

install:
  - set PATH=%CD%\env\bin;C:\Python27\Scripts;%PATH%
  - pip install hererocks
  - hererocks env --%LUA%

init:
- set generator="Visual Studio 14 2015 Win64"

before_build:
- mkdir build
- cd build
- cmake -G %generator% ..

build_script:
- cmake --build . --config Debug

after_build:
- cmake --build . --config Debug --target install

test_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- lua runtests.lua

Use CMake "Debug" build type when running on Appveyor
Use CMake "Debug" build type when running on Appveyor
