aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 00000000..d92c3699
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,50 @@
1version: 2.2.1.{build}-test
2
3os:
4- Windows Server 2012 R2
5
6shallow_clone: true
7
8environment:
9 LUAURL: http://www.lua.org/ftp
10 LUAROCKS_REPO: http://rocks.moonscript.org
11 #LUA_VER: 5.3.0
12 #LUA_SHORTV: 5.3
13
14 matrix:
15 - LUA_VER: 5.3.0
16 LUA_SHORTV: 5.3
17
18 - LUA_VER: 5.2.4
19 LUA_SHORTV: 5.2
20
21 - LUA_VER: 5.1.5
22 LUA_SHORTV: 5.1
23
24init:
25- appveyor DownloadFile %LUAURL%/lua-%LUA_VER%.tar.gz
26- 7z x lua-%LUA_VER%.tar.gz
27- 7z x lua-%LUA_VER%.tar
28- cd lua-%LUA_VER%
29- appveyor DownloadFile https://github.com/Tieske/luawinmake/archive/master.zip
30- 7z x master.zip
31- if not exist etc mkdir etc
32- mv luawinmake-master\etc\winmake.bat %APPVEYOR_BUILD_FOLDER%\lua-%LUA_VER%\etc\winmake.bat
33- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86'
34- etc\winmake.bat
35- etc\winmake.bat install c:\lua%LUA_VER%
36- cd %APPVEYOR_BUILD_FOLDER%
37
38build_script:
39- install.bat /LUA c:\lua%LUA_VER% /Q /LV %LUA_SHORTV%
40- set PATH=%PATH%;C:\Program Files (x86)\LuaRocks\2.2
41- set LUA_PATH="C:\Program Files (x86)\LuaRocks\2.2\lua\?.lua;C:\Program Files (x86)\LuaRocks\2.2\lua\?\init.lua;C:\Program Files (x86)\LuaRocks\systree\share\lua\%LUA_SHORTV%\?.lua;C:\Program Files (x86)\LuaRocks\systree\share\lua\%LUA_SHORTV%\?\init.lua"
42- set LUA_CPATH="C:\Program Files (x86)\LuaRocks\systree\lib\lua\%LUA_SHORTV%\?.dll"
43- luarocks
44- cd test
45# split this to a different file
46# test_version
47- luarocks --version
48# test_build_command
49- appveyor DownloadFile %LUAROCKS_REPO%/stdlib-41.0.0-1.src.rock
50- luarocks build stdlib