mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
23 lines
597 B
JavaScript
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,
|
|
}
|
|
},
|
|
}
|