luacov: include everything
This commit is contained in:
parent
eb8b98eef3
commit
2aca0871cd
11
.luacov
11
.luacov
|
@ -3,7 +3,6 @@
|
||||||
-- This variable is set externally
|
-- This variable is set externally
|
||||||
local source = os.getenv("SOURCE_DIRECTORY") or os.getenv('PWD')
|
local source = os.getenv("SOURCE_DIRECTORY") or os.getenv('PWD')
|
||||||
local build = os.getenv("BUILD_DIRECTORY") or (source .. "/build")
|
local build = os.getenv("BUILD_DIRECTORY") or (source .. "/build")
|
||||||
local lib_dir = os.getenv("AWESOME_LIB_DIR") or (source .. "/lib")
|
|
||||||
|
|
||||||
local function escape_pattern(str)
|
local function escape_pattern(str)
|
||||||
return string.gsub(str, "%W", "%%%1")
|
return string.gsub(str, "%W", "%%%1")
|
||||||
|
@ -13,17 +12,15 @@ return {
|
||||||
statsfile = build .. "/luacov.stats.out",
|
statsfile = build .. "/luacov.stats.out",
|
||||||
|
|
||||||
include = {
|
include = {
|
||||||
escape_pattern(lib_dir) .. "/.+",
|
escape_pattern(source) .. "/.+",
|
||||||
|
-- Relative paths (to source/build dir).
|
||||||
-- For things already having the correct path
|
'^[^/].+',
|
||||||
-- (happens with integration tests)
|
|
||||||
"^lib/",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- configuration for luacov-coveralls reporter
|
-- configuration for luacov-coveralls reporter
|
||||||
coveralls = {
|
coveralls = {
|
||||||
pathcorrect = {
|
pathcorrect = {
|
||||||
{ escape_pattern(lib_dir..'/'), "lib/"},
|
{ escape_pattern(source .. '/'), ''},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue