Comparing version 2.0.0 to 2.0.1
@@ -20,3 +20,5 @@ #!/usr/bin/env node | ||
console.log(input); | ||
var postData = convertLcovToCoveralls(input); | ||
var libDir = process.argv[2] || 'lib'; | ||
var postData = convertLcovToCoveralls(input, libDir); | ||
sendToCoveralls(postData, function(err, response, body){ | ||
@@ -34,1 +36,3 @@ if (err){ | ||
}; | ||
@@ -24,6 +24,11 @@ var TRAVIS_JOB_ID = process.env.TRAVIS_JOB_ID || 'unknown'; | ||
var convertLcovToCoveralls = function(input, filepath){ | ||
filepath = filepath || 'lib'; | ||
console.log("in: ", filepath); | ||
if (filepath[0] !== '/'){ | ||
filepath = process.cwd() + '/' + filepath; | ||
} | ||
console.log("now: ", filepath); | ||
if (filepath[filepath.length - 1] !== '/'){ | ||
filepath = filepath + '/'; | ||
} | ||
console.log("abs: ", filepath); | ||
var parsed = lcovParse(input); | ||
@@ -30,0 +35,0 @@ var postJson = { |
@@ -5,3 +5,3 @@ { | ||
"keywords" : ["coverage", "coveralls"], | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"bugs": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/cainus/node-coveralls/issues" |
172316
6037