diff options
author | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2015-03-20 00:12:56 -0300 |
---|---|---|
committer | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2015-03-20 00:12:56 -0300 |
commit | 93cdd54195a6a5a101c9c37c3034916b710d71ba (patch) | |
tree | ede13e92c5e6b0b606642c21dc237859cde4657e | |
parent | f15e49ddaa95fe24f97f9ea465ddcee2cb38e745 (diff) | |
download | luarocks-93cdd54195a6a5a101c9c37c3034916b710d71ba.tar.gz luarocks-93cdd54195a6a5a101c9c37c3034916b710d71ba.tar.bz2 luarocks-93cdd54195a6a5a101c9c37c3034916b710d71ba.zip |
Adds integration with AppVeyor
Adds a simple integration with AppVeyor, defines a
matrix to test with Lua 5.1, 5.2 and 5.3, and
runs a couple of tests.
This last part (the actual running of the tests), should
be moved to a different file. Some kind of test runner should
be built. But this is a start.
-rw-r--r-- | appveyor.yml | 50 |
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 @@ | |||
1 | version: 2.2.1.{build}-test | ||
2 | |||
3 | os: | ||
4 | - Windows Server 2012 R2 | ||
5 | |||
6 | shallow_clone: true | ||
7 | |||
8 | environment: | ||
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 | |||
24 | init: | ||
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 | |||
38 | build_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 | ||