Improve code quality and write tests
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
// 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,
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user