-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
housekeeping, adding CI, moving some source files, fix linter
- Loading branch information
Showing
10 changed files
with
109 additions
and
50 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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
return { | ||
default = { | ||
output = "TAP" | ||
verbose = true, | ||
coverage = true, | ||
output = "gtest", | ||
ROOT = { | ||
"spec/", | ||
--"examples/vcache.lua", | ||
}, | ||
}, | ||
} |
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,13 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
[*.lua] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
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 @@ | ||
.DS_store | ||
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,31 @@ | ||
--std = "ngx_lua+busted" | ||
unused_args = false | ||
redefined = false | ||
max_line_length = false | ||
|
||
|
||
globals = { | ||
--"_KONG", | ||
--"kong", | ||
--"ngx.IS_CLI", | ||
} | ||
|
||
|
||
not_globals = { | ||
"string.len", | ||
"table.getn", | ||
} | ||
|
||
|
||
ignore = { | ||
--"6.", -- ignore whitespace warnings | ||
} | ||
|
||
|
||
exclude_files = { | ||
"here/**", | ||
"samples/**", | ||
--"spec/fixtures/invalid-module.lua", | ||
--"spec-old-api/fixtures/invalid-module.lua", | ||
} | ||
|
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,6 @@ | ||
modules = { | ||
["date"] = "src/date.lua", | ||
["date.*"] = "src" | ||
} | ||
runreport = true | ||
deletestats = false |
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 |
---|---|---|
@@ -1,28 +1,29 @@ | ||
language: erlang | ||
language: python | ||
sudo: false | ||
|
||
env: | ||
- LUA="luajit-2.0.0-beta9" | ||
- LUA="lua 5.1" | ||
- LUA="lua 5.2" | ||
- LUA="lua 5.3" | ||
- LUA="luajit 2.0" | ||
- LUA="luajit 2.0 --compat 5.2" | ||
- LUA="luajit 2.1" | ||
- LUA="luajit 2.1 --compat 5.2" | ||
|
||
before_install: | ||
- pip install hererocks | ||
- hererocks here -r^ --$LUA | ||
- source here/bin/activate | ||
- luarocks install luacheck | ||
- luarocks install busted | ||
- luarocks install luacov-coveralls | ||
|
||
install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq git luajit luarocks | ||
- sudo ln -s /usr/bin/luajit-2.0.0-beta9 /usr/bin/luajit | ||
- sudo luarocks install busted | ||
- git clone git://github.com/Tieske/date.git | ||
- cd date | ||
- luarocks make | ||
|
||
script: "sudo busted" | ||
script: | ||
- luacheck . | ||
- busted | ||
|
||
notifications: | ||
webhooks: | ||
- http://exobot.herokuapp.com/hubot/travis | ||
recipients: | ||
- thijs@thijsschreijer.nl | ||
email: | ||
on_success: always | ||
on_failure: always | ||
|
||
branches: | ||
except: | ||
- gh-pages | ||
|
||
after_success: | ||
- luacov-coveralls |
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