Mirror of Awesome WM window manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.luacov 766B

1234567891011121314151617181920212223242526272829
  1. -- Configuration file for LuaCov
  2. -- This variable is set externally
  3. local source = os.getenv("SOURCE_DIRECTORY") or os.getenv('PWD')
  4. local build = os.getenv("BUILD_DIRECTORY") or (source .. "/build")
  5. local function escape_pattern(str)
  6. return string.gsub(str, "%W", "%%%1")
  7. end
  8. return {
  9. statsfile = build .. "/luacov.stats.out",
  10. reportfile = build .. "/luacov.report.out",
  11. include = {
  12. escape_pattern(source) .. "/.+",
  13. -- Relative paths (to source/build dir).
  14. '^[^/].+',
  15. },
  16. -- configuration for luacov-coveralls reporter
  17. coveralls = {
  18. pathcorrect = {
  19. { escape_pattern(source .. '/'), ''},
  20. },
  21. },
  22. }
  23. -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80