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

23 lines
597 B
JavaScript

// http://devcenter.wercker.com/articles/steps/variables.html
module.exports = {
detect: function() {
return !!process.env.WERCKER_MAIN_PIPELINE_STARTED
},
configuration: function() {
console.log(' Wercker CI Detected')
return {
service: 'wercker',
build: process.env.WERCKER_MAIN_PIPELINE_STARTED,
commit: process.env.WERCKER_GIT_COMMIT,
build_url: process.env.WERCKER_BUILD_URL,
branch: process.env.WERCKER_GIT_BRANCH,
slug:
process.env.WERCKER_GIT_OWNER +
'/' +
process.env.WERCKER_GIT_REPOSITORY,
}
},
}