forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Mashape/kong
# By thibaultCha (6) and Ahmad Nassri (1) # Via thibaultCha (2) and Thibault Charbonnier (1) * 'master' of github.com:Mashape/kong: Use a .luacov instead of relying on the Makefile Linting modules Debian installation instructions README: add coveralls badge Revert "adding os declaration" adding os declaration Linting, coverage, coveralls and dev rocks
- Loading branch information
Showing
23 changed files
with
242 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,6 @@ bower_components/ | |
out/ | ||
config.*/ | ||
!config.default/ | ||
|
||
# luacov | ||
luacov.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unused_args = false | ||
globals = {"ngx", "dao", "utils", "app", "configuration"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- Global configuration file. Copy, customize and store in your | ||
-- project folder as '.luacov' for project specific configuration | ||
-- @class module | ||
-- @name luacov.defaults | ||
return { | ||
-- default filename to load for config options if not provided | ||
-- only has effect in 'luacov.defaults.lua' | ||
['configfile'] = '.luacov', | ||
|
||
-- filename to store stats collected | ||
['statsfile'] = 'luacov.stats.out', | ||
|
||
-- filename to store report | ||
['reportfile'] = 'luacov.report.out', | ||
|
||
-- Run reporter on completion? (won't work for ticks) | ||
runreport = true, | ||
|
||
-- Delete stats file after reporting? | ||
deletestats = true, | ||
|
||
-- Patterns for files to include when reporting | ||
-- all will be included if nothing is listed | ||
-- (exclude overrules include, do not include | ||
-- the .lua extension) | ||
['include'] = { | ||
'kong' | ||
}, | ||
|
||
-- Patterns for files to exclude when reporting | ||
-- all will be included if nothing is listed | ||
-- (exclude overrules include, do not include | ||
-- the .lua extension) | ||
['exclude'] = { | ||
'luacov$', | ||
'luacov.reporter$', | ||
'luacov.defaults$', | ||
'luacov.runner$', | ||
'luacov.stats$', | ||
'luacov.tick$', | ||
'ansicolors$', | ||
'copas$', | ||
'coxpcall$', | ||
'mediator$', | ||
'moonscript.*$', | ||
'socket$', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
NEEDED_ROCKS="busted luacov luacov-coveralls luacheck" | ||
|
||
for rock in ${NEEDED_ROCKS} ; do | ||
if ! command -v ${rock} &> /dev/null ; then | ||
echo ${rock} not found, installing via luarocks... | ||
luarocks install ${rock} | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,4 @@ function Object:__call(...) | |
end | ||
|
||
|
||
return Object | ||
return Object |
File renamed without changes.
Oops, something went wrong.