trigger CodeCov from drone.io build (SkipLint)

This commit is contained in:
OCram85 2020-10-02 15:05:19 +02:00
parent 7b43973c59
commit 398445c73d
3 changed files with 2 additions and 7 deletions

View File

@ -23,3 +23,4 @@ steps:
commands:
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-InstallDependencies}"
- pwsh -NonInteractive -c "& {Import-Module './tools/DroneIO.psm1'; Invoke-UnitTests}"
- bash <(curl -s https://codecov.io/bash)

View File

@ -48,12 +48,6 @@ test_script:
else {
Write-Warning "No CoverallsToken found. This build seems to be triggered by a PR. Skipping this step..."
}
if ($null -ne $Env:CodeCovToken) {
Invoke-CodeCove
}
else {
Write-Warning "No CodeCovToken found. This build seems to be triggered by a PR. Skipping this step..."
}
deploy:
#- provider: GitHub

View File

@ -80,7 +80,7 @@ function Invoke-UnitTests {
Write-Host '===== Running Pester =====' -ForegroundColor Black -BackgroundColor Yellow
$TestFiles = Get-ChildItem -Path (Join-Path -Path '.' -ChildPath './tests/*.Tests.ps1') -Recurse | Sort-Object -Property Name
$TestResults = Invoke-Pester -Script $TestFiles -ExcludeTag 'Disabled' -PassThru
$TestResults = Invoke-Pester -Path $testFiles -CodeCoverage $srcFiles -PassThru -CodeCoverageOutputFile "./coverage.xml" -CodeCoverageOutputFileEncoding ascii -CodeCoverageOutputFileFormat JaCoCo
if ($TestResults.FailedCount -gt 0) {
throw ('{0} tests failed!' -f $TestResults.FailedCount)