Improve code quality and write tests

This commit is contained in:
Shivam Mathur
2019-09-20 21:54:46 +05:30
parent db44db4b97
commit 43178a7254
3597 changed files with 255478 additions and 785554 deletions
+22
View File
@@ -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,
}
},
}