Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit ba59478

Browse files
Add fake data to CA_KEY when it's not present
1 parent 6240995 commit ba59478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ before_test:
1818
- ps: Install-Module Coveralls -MinimumVersion 1.0.5 -Scope CurrentUser
1919
- ps: Import-Module Coveralls
2020
test_script:
21-
- ps: $res = Invoke-Pester -Path ".\Helpers" -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
21+
- ps: $res = Invoke-Pester -Path ".\Helpers" -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru -EnableExit
2222
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
23-
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
23+
- ps: if (!$ENV:CA_KEY) { $ENV:CA_KEY = 14mb4l0n1 }
2424
- ps: $coverageResult = Format-Coverage -Include @('Helpers\PoshGit.ps1','Helpers\Prompt.ps1','install.ps1') -CoverallsApiToken $ENV:CA_KEY -BranchName $ENV:APPVEYOR_REPO_BRANCH
2525
- ps: Publish-Coverage -Coverage $coverageResult
2626
deploy_script:

0 commit comments

Comments
 (0)