forked from github/server
Merge branch 'luarocks' into develop
This commit is contained in:
commit
fb34d09be6
|
@ -1,6 +1,3 @@
|
||||||
[submodule "lunit"]
|
|
||||||
path = lunit
|
|
||||||
url = https://github.com/ennorehling/lunit.git
|
|
||||||
[submodule "dlmalloc"]
|
[submodule "dlmalloc"]
|
||||||
path = dlmalloc
|
path = dlmalloc
|
||||||
url = https://github.com/ennorehling/dlmalloc.git
|
url = https://github.com/ennorehling/dlmalloc.git
|
||||||
|
|
2
clibs
2
clibs
|
@ -1 +1 @@
|
||||||
Subproject commit abe774f70265de14ea7f5e530518ca130562a9c9
|
Subproject commit 484fbf23e34f6844f1c4e3f685bb6c53cadf5bfe
|
1
lunit
1
lunit
|
@ -1 +0,0 @@
|
||||||
Subproject commit 155c96594435413b4f704eb17558ea0b70631bad
|
|
|
@ -125,6 +125,7 @@ TOLUA
|
||||||
else
|
else
|
||||||
echo "tolua is $path"
|
echo "tolua is $path"
|
||||||
fi
|
fi
|
||||||
|
luarocks --local install lunitx
|
||||||
unset path
|
unset path
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
|
@ -3,4 +3,3 @@ if config.paths ~= nil then
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- print(package.path)
|
|
||||||
|
|
|
@ -4,18 +4,16 @@
|
||||||
path = 'scripts'
|
path = 'scripts'
|
||||||
if config.install then
|
if config.install then
|
||||||
path = config.install .. '/' .. path
|
path = config.install .. '/' .. path
|
||||||
package.path = package.path .. ';' .. config.install .. '/lunit/?.lua'
|
|
||||||
--needed to find lunit if not run from eressea root. Needs right [lua] install setting in eressea.ini (point to eressea root from the start folder)
|
|
||||||
end
|
end
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
|
||||||
config.rules = 'e2'
|
config.rules = 'e2'
|
||||||
|
|
||||||
|
lunit = require 'lunit'
|
||||||
require 'eressea'
|
require 'eressea'
|
||||||
require 'eressea.xmlconf'
|
require 'eressea.xmlconf'
|
||||||
require 'eressea.path'
|
require 'eressea.path'
|
||||||
require 'tests.e2'
|
require 'tests.e2'
|
||||||
require 'lunit'
|
|
||||||
|
|
||||||
rng.inject(0)
|
rng.inject(0)
|
||||||
eressea.settings.set("rules.food.flags", "4")
|
eressea.settings.set("rules.food.flags", "4")
|
||||||
|
|
|
@ -4,18 +4,16 @@
|
||||||
path = 'scripts'
|
path = 'scripts'
|
||||||
if config.install then
|
if config.install then
|
||||||
path = config.install .. '/' .. path
|
path = config.install .. '/' .. path
|
||||||
package.path = package.path .. ';' .. config.install .. '/lunit/?.lua'
|
|
||||||
--needed to find lunit if not run form eressea root. Needs right [lua] install setting in eressea.ini (point to eressea root from the start folder)
|
|
||||||
end
|
end
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
|
||||||
config.rules = 'e3'
|
config.rules = 'e3'
|
||||||
|
|
||||||
|
lunit = require 'lunit'
|
||||||
require 'eressea'
|
require 'eressea'
|
||||||
require 'eressea.path'
|
require 'eressea.path'
|
||||||
require 'eressea.xmlconf'
|
require 'eressea.xmlconf'
|
||||||
require 'tests.e3'
|
require 'tests.e3'
|
||||||
require 'lunit'
|
|
||||||
|
|
||||||
rng.inject(0)
|
rng.inject(0)
|
||||||
eressea.settings.set("rules.alliances", "0")
|
eressea.settings.set("rules.alliances", "0")
|
||||||
|
|
|
@ -4,14 +4,12 @@
|
||||||
path = 'scripts'
|
path = 'scripts'
|
||||||
if config.install then
|
if config.install then
|
||||||
path = config.install .. '/' .. path
|
path = config.install .. '/' .. path
|
||||||
package.path = package.path .. ';' .. config.install .. '/lunit/?.lua'
|
|
||||||
--needed to find lunit if not run form eressea root. Needs right [lua] install setting in eressea.ini (point to eressea root from the start folder)
|
|
||||||
end
|
end
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
|
||||||
|
lunit = require 'lunit'
|
||||||
require 'eressea'
|
require 'eressea'
|
||||||
require 'eressea.path'
|
require 'eressea.path'
|
||||||
require 'tests'
|
require 'tests'
|
||||||
require 'lunit'
|
|
||||||
result = lunit.main()
|
result = lunit.main()
|
||||||
return result.errors + result.failed
|
return result.errors + result.failed
|
||||||
|
|
Loading…
Reference in New Issue