Skip to content

Commit 913e897

Browse files
Adding explaination for appveyor runs
1 parent aabdc0e commit 913e897

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎Tests/GitHubAnalytics.tests.ps1‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
if ($env:AppVeyor)
99
{
1010
$global:gitHubApiToken = $env:token
11-
Write-Host "This run is executed in appveyor environment. GitHubApiToken won't be decrypted in PR runs, so some tests may fail due to this.`n403 errors possible due to GitHub hourly limit for unauthenticated queries." -BackgroundColor Yellow -ForegroundColor Black
11+
$message = 'This run is executed in the AppVeyor environment.
12+
GitHubApiToken won''t be decrypted in PR runs causing some tests to fail.
13+
403 errors possible due to GitHub hourly limit for unauthenticated queries.
14+
Define $global:gitHubApiToken manually and run tests on your machine first.'
15+
Write-Host $message -BackgroundColor Yellow -ForegroundColor Black
1216
}
1317

1418
$apiTokensFilePath = "$root\ApiTokens.psm1"

‎Tests/GitHubLabels.tests.ps1‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
if ($env:AppVeyor)
99
{
1010
$global:gitHubApiToken = $env:token
11-
Write-Host "This run is executed in appveyor environment. GitHubApiToken won't be decrypted in PR runs, so some tests may fail due to this.`n403 errors possible due to GitHub hourly limit for unauthenticated queries." -BackgroundColor Yellow -ForegroundColor Black
11+
$message = 'This run is executed in the AppVeyor environment.
12+
GitHubApiToken won''t be decrypted in PR runs causing some tests to fail.
13+
403 errors possible due to GitHub hourly limit for unauthenticated queries.
14+
Define $global:gitHubApiToken manually and run tests on your machine first.'
15+
Write-Host $message -BackgroundColor Yellow -ForegroundColor Black
1216
}
1317

1418
$apiTokensFilePath = "$root\ApiTokens.psm1"

0 commit comments

Comments
 (0)