Improve code quality and write tests
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
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,
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user