setup-php/node_modules/codecov/lib/services/localGit.js
2019-09-20 21:54:46 +05:30

17 lines
320 B
JavaScript

var git = require('../git')
module.exports = {
configuration: function() {
console.log(' No CI Detected. Using git/mercurial')
var branch = git.branch()
if (branch === 'HEAD') {
branch = 'master'
}
var head = git.head()
return {
commit: head,
branch: branch,
}
},
}