File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ before_install:
2020 - sudo luarocks install dkjson
2121 - sudo luarocks install luafilesystem
2222 - sudo luarocks install lua-path
23+ - sudo luarocks install luacov-coveralls
2324
2425install :
2526 - sudo luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
@@ -34,7 +35,8 @@ script:
3435 - lunit.sh test_curl.lua
3536
3637after_success :
37- - coveralls -b .. -r ..
38+ - coveralls -b .. -r .. --dump c.report.json
39+ - luacov-coveralls -j c.report.json
3840
3941notifications :
4042 email :
Original file line number Diff line number Diff line change 1+ --
2+ -- Author: Alexey Melnichuk <mimir@newmail.ru>
3+ --
4+ -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru>
5+ --
6+ -- Licensed according to the included 'LICENSE' document
7+ --
8+ -- This file is part of Lua-cURL library.
9+ --
10+
111local curl = require " lcurl"
212local impl = require " cURL.impl.cURL"
313
Original file line number Diff line number Diff line change 55--
66-- Licensed according to the included 'LICENSE' document
77--
8- -- This file is part of lua-lcurl library.
9- --
10-
11- --
12- -- Implementation of Lua-cURL http://msva.github.io/lua-curl
8+ -- This file is part of Lua-cURL library.
139--
1410
1511local function clone (t , o )
Original file line number Diff line number Diff line change 1+ --
2+ -- Author: Alexey Melnichuk <mimir@newmail.ru>
3+ --
4+ -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru>
5+ --
6+ -- Licensed according to the included 'LICENSE' document
7+ --
8+ -- This file is part of Lua-cURL library.
9+ --
10+
111local curl = require " lcurl.safe"
212local impl = require " cURL.impl.cURL"
313
Original file line number Diff line number Diff line change 1+ --
2+ -- Author: Alexey Melnichuk <mimir@newmail.ru>
3+ --
4+ -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru>
5+ --
6+ -- Licensed according to the included 'LICENSE' document
7+ --
8+ -- This file is part of Lua-cURL library.
9+ --
10+
111--- Returns path to cURL ca bundle
212--
313-- @tparam [opt="curl-ca-bundle.crt"] string name name of bundle
Original file line number Diff line number Diff line change 1+ return {
2+ configfile = ".luacov",
3+
4+ -- filename to store stats collected
5+ statsfile = "luacov.stats.out",
6+
7+ -- filename to store report
8+ reportfile = "luacov.report.json",
9+
10+ -- Run reporter on completion? (won't work for ticks)
11+ runreport = false,
12+
13+ -- Delete stats file after reporting?
14+ deletestats = false,
15+
16+ -- Patterns for files to include when reporting
17+ -- all will be included if nothing is listed
18+ -- (exclude overrules include, do not include
19+ -- the .lua extension)
20+ include = {
21+ "/cURL$",
22+ "/cURL/.+$",
23+ },
24+
25+ -- Patterns for files to exclude when reporting
26+ -- all will be included if nothing is listed
27+ -- (exclude overrules include, do not include
28+ -- the .lua extension)
29+ exclude = {
30+ },
31+
32+ -- configuration for luacov-coveralls reporter
33+ coveralls = {
34+ pathcorrect = {
35+ {"/usr/local/share/lua/5.[123]", "src/lua"};
36+ },
37+ },
38+ }
Original file line number Diff line number Diff line change 1+ local _ ,luacov = pcall (require , " luacov" )
2+
13local HAS_RUNNER = not not lunit
24local lunit = require " lunit"
35local TEST_CASE = assert (lunit .TEST_CASE )
You can’t perform that action at this time.
0 commit comments