Merge pull request 'chore: format dockerfile' (#81) from fix/tests-teal into master
Reviewed-on: #81
This commit is contained in:
commit
e43ca1d3fc
16
.busted
16
.busted
|
@ -1,8 +1,20 @@
|
||||||
-- Adds the sources to Lua's path so that busted can find all the modules
|
require("tl").loader()
|
||||||
require "set_paths"
|
|
||||||
|
local version <const> = _VERSION:match "%d+%.%d+"
|
||||||
|
|
||||||
|
local function lua_module_paths(module_base_path)
|
||||||
|
local paths = (module_base_path .. "/?.lua;")
|
||||||
|
.. (module_base_path .. "/?/init.lua;")
|
||||||
|
|
||||||
|
return paths
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
default = {
|
default = {
|
||||||
|
lpath = lua_module_paths("lua_modules/share/lua/" .. version)
|
||||||
|
.. lua_module_paths "types"
|
||||||
|
.. lua_module_paths "./src/awesomewm.d.tl",
|
||||||
|
cpath = "lua_modules/lib/lua/" .. version .. "/?.so;",
|
||||||
loaders = { "teal" },
|
loaders = { "teal" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"justfile",
|
"justfile",
|
||||||
"libc",
|
"libc",
|
||||||
"lldebugger",
|
"lldebugger",
|
||||||
|
"lpath",
|
||||||
"Luacheck",
|
"Luacheck",
|
||||||
"luacheckrc",
|
"luacheckrc",
|
||||||
"luafilesystem",
|
"luafilesystem",
|
||||||
|
|
|
@ -6,4 +6,3 @@ RUN \
|
||||||
gcc libc-dev openssl-dev \
|
gcc libc-dev openssl-dev \
|
||||||
just \
|
just \
|
||||||
&& luarocks install --server=https://luarocks.org/dev busted-tl
|
&& luarocks install --server=https://luarocks.org/dev busted-tl
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue