Modernize Build Pipeline #48

Merged
OCram85 merged 20 commits from updmeta into master 2020-10-02 15:48:59 +02:00
3 changed files with 2 additions and 7 deletions
Showing only changes of commit 398445c73d - Show all commits

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)