aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignaciob@inconcertcc.com>2015-03-27 12:34:19 -0300
committerIgnacio Burgueño <ignaciob@inconcertcc.com>2015-03-27 12:34:19 -0300
commite31c46b8430b10cdf01c2570de810b028c5895a7 (patch)
tree57823c4c02ff23f00144bfcda821f727ba5dc923 /appveyor.yml
parent93cdd54195a6a5a101c9c37c3034916b710d71ba (diff)
downloadluarocks-e31c46b8430b10cdf01c2570de810b028c5895a7.tar.gz
luarocks-e31c46b8430b10cdf01c2570de810b028c5895a7.tar.bz2
luarocks-e31c46b8430b10cdf01c2570de810b028c5895a7.zip
Improved the CI scripts
Ported back part of the work made [here](https://github.com/ignacio/lua-appveyor-example) by @moteus and me. I still need to write a test runner of sorts.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml51
1 files changed, 17 insertions, 34 deletions
diff --git a/appveyor.yml b/appveyor.yml
index d92c3699..436c341b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -6,45 +6,28 @@ os:
6shallow_clone: true 6shallow_clone: true
7 7
8environment: 8environment:
9 LUAURL: http://www.lua.org/ftp 9 LUAROCKS_VER: 2.2.1
10 LUAROCKS_REPO: http://rocks.moonscript.org
11 #LUA_VER: 5.3.0
12 #LUA_SHORTV: 5.3
13 10
14 matrix: 11 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 12 - LUA_VER: 5.1.5
22 LUA_SHORTV: 5.1 13 - LUA_VER: 5.2.4
14 - LUA_VER: 5.3.0
15 - LJ_VER: 2.0.3
16 - LJ_VER: 2.1
23 17
24init: 18init:
25- appveyor DownloadFile %LUAURL%/lua-%LUA_VER%.tar.gz 19# Setup Lua development/build environment
26- 7z x lua-%LUA_VER%.tar.gz 20# Make VS 2013 command line tools available
27- 7z x lua-%LUA_VER%.tar 21- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
28- cd lua-%LUA_VER% 22
29- appveyor DownloadFile https://github.com/Tieske/luawinmake/archive/master.zip 23install:
30- 7z x master.zip 24# Setup Lua development/build environment
31- if not exist etc mkdir etc 25- call .appveyor\install.bat
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 26
38build_script: 27build_script:
39- install.bat /LUA c:\lua%LUA_VER% /Q /LV %LUA_SHORTV% 28- call .appveyor\build.bat
40- set PATH=%PATH%;C:\Program Files (x86)\LuaRocks\2.2 29
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" 30test_script:
42- set LUA_CPATH="C:\Program Files (x86)\LuaRocks\systree\lib\lua\%LUA_SHORTV%\?.dll" 31- echo "Testing..."
43- luarocks
44- cd test 32- cd test
45# split this to a different file 33- call testing.bat
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