aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcainus <[email protected]>2013-03-28 00:26:55 -0700
committercainus <[email protected]>2013-03-28 00:26:55 -0700
commitf27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2 (patch)
treed26d70286b616bf6e3f3c578620491440098f259 /lib
parent112119e43cb048cfa0dbd98d6e03833b8ca4b619 (diff)
downloadnode-coveralls-f27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2.tar.xz
node-coveralls-f27d2ec87c5ce5606cc01839ad056b5b1a4ae7a2.zip
allow lib path to be passed as an arg.
Diffstat (limited to 'lib')
-rw-r--r--lib/convertLcovToCoveralls.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js
index cd3ee6d..dfc467c 100644
--- a/lib/convertLcovToCoveralls.js
+++ b/lib/convertLcovToCoveralls.js
@@ -21,10 +21,15 @@ var convertLcovFileObject = function(file, filepath){
};
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);
var postJson = {
service_job_id : TRAVIS_JOB_ID,