[TESTING] Coverage Report skipping for PRs #15
@ -153,7 +153,7 @@ Function Invoke-CoverageReport() {
|
|||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[String]$RepoToken = $Env:CoverallsToken
|
[String]$RepoToken = $Env:CoverallsToken
|
||||||
)
|
)
|
||||||
if ( $null -ne $RepoToken) {
|
|
||||||
Import-Module ('.\src\{0}.psm1' -f $CALLSIGN) -Verbose -Force
|
Import-Module ('.\src\{0}.psm1' -f $CALLSIGN) -Verbose -Force
|
||||||
$FileMap = New-PesterFileMap -SourceRoot '.\src' -PesterRoot '.\tests'
|
$FileMap = New-PesterFileMap -SourceRoot '.\src' -PesterRoot '.\tests'
|
||||||
$CoverageReport = New-CoverageReport -PesterFileMap $FileMap -RepoToken $RepoToken
|
$CoverageReport = New-CoverageReport -PesterFileMap $FileMap -RepoToken $RepoToken
|
||||||
@ -161,10 +161,6 @@ Function Invoke-CoverageReport() {
|
|||||||
$CoverageReport | Out-String | Write-Host
|
$CoverageReport | Out-String | Write-Host
|
||||||
Publish-CoverageReport -CoverageReport $CoverageReport
|
Publish-CoverageReport -CoverageReport $CoverageReport
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
Write-Warning 'CoverallsToken var given but empty. This run is triggered by a PR. Skipping coverage report...'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Function Invoke-AppVeyorPSGallery() {
|
Function Invoke-AppVeyorPSGallery() {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
|
Loading…
Reference in New Issue
Block a user