mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-27 05:43:06 +07:00
24 lines
614 B
JavaScript
24 lines
614 B
JavaScript
|
module.exports = {
|
||
|
detect: function() {
|
||
|
return !!process.env.APPVEYOR
|
||
|
},
|
||
|
|
||
|
configuration: function() {
|
||
|
console.log(' AppVeyor CI Detected')
|
||
|
return {
|
||
|
service: 'appveyor',
|
||
|
commit: process.env.APPVEYOR_REPO_COMMIT,
|
||
|
branch: process.env.APPVEYOR_REPO_BRANCH,
|
||
|
pr: process.env.APPVEYOR_PULL_REQUEST_NUMBER,
|
||
|
job:
|
||
|
process.env.APPVEYOR_ACCOUNT_NAME +
|
||
|
'/' +
|
||
|
process.env.APPVEYOR_PROJECT_SLUG +
|
||
|
'/' +
|
||
|
process.env.APPVEYOR_BUILD_VERSION,
|
||
|
build: process.env.APPVEYOR_JOB_ID,
|
||
|
slug: process.env.APPVEYOR_REPO_NAME,
|
||
|
}
|
||
|
},
|
||
|
}
|