Skip to content

Commit

Permalink
fix coveralls publishing for multiplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
aseduto committed Sep 24, 2018
1 parent f0aa2e0 commit 1cbed84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test_script:
#- cd tools
#- dotnet minicover report --workdir ../ --threshold 90
#- pwsh: ls env: | ? {-Not ($_.name -match 'coverall')}
- pwsh: $ll = dotnet ./minicover/src/MiniCover/out/dotnet-minicover.dll report --workdir ./ --threshold 50; $ll | oh; $r = [System.Text.RegularExpressions.Regex]::IsMatch($ll, "\| Program\.cs \| 19 \| 10 \| 52.63 % \|"); $rr = "Failed"; if($r){$rr="Passed";};Add-AppveyorTest -Name "Minicover Master" -Framework "Integration" -FileName "program.cs" -Outcome $rr;
- pwsh: $ll = dotnet ./minicover/src/MiniCover/out/dotnet-minicover.dll report --workdir ./ --threshold 50; $ll | oh; $r = [System.Text.RegularExpressions.Regex]::IsMatch($ll, "\| Program\.cs \| 19 \| 10 \| 52\.\d+ % \|"); $rr = "Failed"; if($r){$rr="Passed";};Add-AppveyorTest -Name "Minicover Master" -Framework "Integration" -FileName "program.cs" -Outcome $rr;
#- dotnet ./minicover/src/minicover/out/dotnet-minicover.dll coverallsreport --commit %APPVEYOR_REPO_COMMIT% --service-name appveyor --output coverall.json --service-job-id %APPVEYOR_BUILD_NUMBER% --repo-token %coverall% --branch %APPVEYOR_REPO_BRANCH% --remote origin --remote-url https://github.com/aseduto/testman.git --commit-message "%APPVEYOR_REPO_COMMIT_MESSAGE%"
- pwsh: $o = "-------------------"; $o | oh
- pwsh: ls; remove-item "coverage.*"; remove-item minicover -force -recurse;
Expand All @@ -75,9 +75,9 @@ test_script:
- dotnet ./out2/depsman.dll
- ls
#- pwsh: $ll = dotnet ./minicover/src/minicover/out2/dotnet-minicover.dll report --workdir ./ --threshold 50; $ll | oh; [System.Text.RegularExpressions.Regex]::IsMatch($ll, "\| Program\.cs \| 16 \| 9 \| 52.63 % \|") | oh;
- pwsh: $ll = dotnet ./minicover/src/MiniCover/out2/dotnet-minicover.dll report --workdir ./ --threshold 50; $ll | oh; $r = [System.Text.RegularExpressions.Regex]::IsMatch($ll, "\| Program\.cs \| 19 \| 10 \| 52.63 % \|"); $rr = "Failed"; if($r){$rr="Passed";};Add-AppveyorTest -Name "Minicover fix coverage" -Framework "Integration" -FileName "program.cs" -Outcome $rr;
- pwsh: $ll = dotnet ./minicover/src/MiniCover/out2/dotnet-minicover.dll report --workdir ./ --threshold 50; $ll | oh; $r = [System.Text.RegularExpressions.Regex]::IsMatch($ll, "\| Program\.cs \| 19 \| 10 \| 52\.\d+ % \|"); $rr = "Failed"; if($r){$rr="Passed";};Add-AppveyorTest -Name "Minicover fix coverage" -Framework "Integration" -FileName "program.cs" -Outcome $rr;
#- dotnet ./minicover/src/minicover/out2/dotnet-minicover.dll coverallreport --id %APPVEYOR_REPO_COMMIT% --servicename appveyor --output coverall.json --job %APPVEYOR_BUILD_NUMBER% --token %coverall% --branch %APPVEYOR_REPO_BRANCH% --remote origin --remote-url https://github.com/aseduto/testman.git --post https://coveralls.io/api/v1/jobs --threshold 50 --msg "%APPVEYOR_REPO_COMMIT_MESSAGE%"
- dotnet ./minicover/src/MiniCover/out2/dotnet-minicover.dll coverallsreport --commit %APPVEYOR_REPO_COMMIT% --service-name appveyor --output coverall.json --service-job-id %APPVEYOR_BUILD_NUMBER% --repo-token %coverall% --branch %APPVEYOR_REPO_BRANCH% --remote origin --remote-url https://github.com/aseduto/testman.git --commit-message "%APPVEYOR_REPO_COMMIT_MESSAGE%"
- pwsh: dotnet ./minicover/src/MiniCover/out2/dotnet-minicover.dll coverallsreport --commit $env:APPVEYOR_REPO_COMMIT --service-name appveyor --output coverall.json --service-job-id $env:APPVEYOR_BUILD_NUMBER --repo-token $env:coverall --branch $env:APPVEYOR_REPO_BRANCH% --remote origin --remote-url https://github.com/aseduto/testman.git --commit-message "$env:APPVEYOR_REPO_COMMIT_MESSAGE"

# to disable automatic tests
#test: off
Expand Down

0 comments on commit 1cbed84

Please sign in to comment.