setup-php/node_modules/codecov/lib/services/shippable.js

20 lines
514 B
JavaScript
Raw Normal View History

2019-09-20 09:41:20 +07:00
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,
}
},
}