1 | module.exports = {
|
2 | detect: function() {
|
3 | return !!process.env.APPVEYOR
|
4 | },
|
5 |
|
6 | configuration: function() {
|
7 | console.log(' AppVeyor CI Detected')
|
8 | return {
|
9 | service: 'appveyor',
|
10 | commit: process.env.APPVEYOR_REPO_COMMIT,
|
11 | branch: process.env.APPVEYOR_REPO_BRANCH,
|
12 | pr: process.env.APPVEYOR_PULL_REQUEST_NUMBER,
|
13 | job:
|
14 | process.env.APPVEYOR_ACCOUNT_NAME +
|
15 | '/' +
|
16 | process.env.APPVEYOR_PROJECT_SLUG +
|
17 | '/' +
|
18 | process.env.APPVEYOR_BUILD_VERSION,
|
19 | build: process.env.APPVEYOR_JOB_ID,
|
20 | slug: process.env.APPVEYOR_REPO_NAME,
|
21 | }
|
22 | },
|
23 | }
|