mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-29 23:03:04 +07:00
20 lines
514 B
JavaScript
20 lines
514 B
JavaScript
module.exports = {
|
|
detect: function() {
|
|
return !!process.env.SHIPPABLE
|
|
},
|
|
|
|
configuration: function() {
|
|
// http://docs.shippable.com/en/latest/config.html#common-environment-variables
|
|
console.log(' Shippable CI Detected')
|
|
return {
|
|
service: 'shippable',
|
|
build: process.env.BUILD_NUMBER,
|
|
build_url: process.env.BUILD_URL,
|
|
pr: process.env.PULL_REQUEST,
|
|
commit: process.env.COMMIT,
|
|
branch: process.env.BRANCH,
|
|
slug: process.env.REPO_NAME,
|
|
}
|
|
},
|
|
}
|