version: '{build}'
os: Visual Studio 2015
clone_depth: 1

configuration:
- Release

before_build:
- cmake -H. -Bbuild -G"Visual Studio 14 2015 Win64"

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

version: '{build}'
os: Visual Studio 2015
clone_depth: 1

configuration:
- Release

install:
  - cmd: md .appveyor
  - appveyor DownloadFile https://cdn.rawgit.com/ignacio/lua-appveyor-example/0f1932a380ae29d0962db065934556edaf700794/.appveyor/install.bat -FileName .appveyor/install.bat
  - appveyor DownloadFile https://cdn.rawgit.com/ignacio/lua-appveyor-example/0f1932a380ae29d0962db065934556edaf700794/.appveyor/set_compiler_env.bat -FileName .appveyor/set_compiler_env.bat
  - appveyor DownloadFile https://cdn.rawgit.com/ignacio/lua-appveyor-example/0f1932a380ae29d0962db065934556edaf700794/.appveyor/winmake.bat -FileName .appveyor/winmake.bat
  - call .appveyor\set_compiler_env.bat >NUL 2>&1
  - call .appveyor\install.bat >NUL 2>&1
  - set PATH=c:\lua\5.1.5\bin\;c:\lua\5.1.5\LuaRocks;c:\lua\5.1.5\LuaRocks\systree\bin;%PATH%
  - set LUA_PATH=;;c:\lua\5.1.5\LuaRocks\lua\?.lua;c:\lua\5.1.5\LuaRocks\lua\?\init.lua;c:\lua\5.1.5\LuaRocks\systree\share\lua\5.1\?.lua;c:\lua\5.1.5\LuaRocks\systree\share\lua\5.1\?\init.lua
  - set LUA_CPATH=;;c:\lua\5.1.5\LuaRocks\systree\lib\lua\5.1\?.dll

before_build:
- cmake -H. -Bbuild -G"Visual Studio 14 2015 Win64" -DLUA_LIB_NAME=lua51 -DLUA_LIB_PATH="c:\lua\5.1.5\lib" -DLUA_INCLUDE="c:\lua\5.1.5\include"

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

Add scripts install lua 5.1.5.
Add scripts install lua 5.1.5.
