diff --git a/appveyor.yml b/appveyor.yml index 4b42772..3db0538 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,8 @@ install: # - ps: Update-Module 'Pester' # - ps: Install-Module -Name 'posh-git' -Scope CurrentUser -Force -SkipPublisherCheck -AllowClobber # - ps: Update-Module 'posh-git' + - ps: Install-Module -Name 'PSCoverage' -Scope CurrentUser -Force -SkipPublisherCheck -AllowClobber + - ps: Import-Module 'PSCoverage' - ps: Import-Module .\tools\AppVeyor.psm1 environment: diff --git a/tools/AppVeyor.psm1 b/tools/AppVeyor.psm1 index 4026add..63d5343 100644 --- a/tools/AppVeyor.psm1 +++ b/tools/AppVeyor.psm1 @@ -6,7 +6,7 @@ - Git repository name - Module name #> -$CALLSIGN = 'PSCoverage' +$CALLSIGN = 'PSCredentialStore' Write-Host ("Callsign is: {0}" -f $CALLSIGN) -ForegroundColor Yellow Function Invoke-AppVeyorBumpVersion() { @@ -128,7 +128,7 @@ Function Invoke-CoverageReport() { [String]$RepoToken = $Env:CoverallsToken ) - Import-Module '.\src\PSCoverage.psm1' -Verbose -Force + Import-Module ('.\src\{0}.psm1' -f $CALLSIGN) -Verbose -Force $FileMap = New-PesterFileMap -SourceRoot '.\src' -PesterRoot '.\tests' $CoverageReport = New-CoverageReport -PesterFileMap $FileMap -RepoToken $RepoToken Write-Host "CoverageReport JSON:" -ForegroundColor Yellow