Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 4c1742a

Browse files
committed
Merge pull request #13 from CamiloMM/master
Add Windows support
2 parents c899630 + 8d32129 commit 4c1742a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

formatter.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Formatter.prototype.format = function(lcovData, callback) {
2323
run_at: Date.now(),
2424
partial: false,
2525
environment: {
26-
pwd: process.cwd(),
26+
pwd: process.cwd().split(path.sep).join('/'),
2727
package_version: pjson.version
2828
},
2929
ci_service: ci.getInfo()
@@ -73,6 +73,9 @@ Formatter.prototype.sourceFiles = function(data) {
7373
});
7474

7575
var fileName = path.relative(self.rootDirectory(), elem.file);
76+
if (path.sep !== '/') {
77+
fileName = fileName.split(path.sep).join('/');
78+
}
7679

7780
source_files.push({
7881
name: fileName,

git_info.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ var childProcess = require('child_process');
44
module.exports = {
55

66
head: function(cb) {
7-
childProcess.exec("git log -1 --pretty=format:'%H'", function (error, stdout, stderr) {
7+
childProcess.exec("git log -1 --pretty=format:%H", function (error, stdout, stderr) {
88
return cb(error, stdout);
99
});
1010
},
1111

1212
committedAt: function(cb) {
13-
childProcess.exec("git log -1 --pretty=format:'%ct'", function (error, stdout, stderr) {
13+
childProcess.exec("git log -1 --pretty=format:%ct", function (error, stdout, stderr) {
1414
var result = null;
1515
var timestamp = null;
1616
if (stdout) {

0 commit comments

Comments
 (0)