Merge branch 'users/nugetninja/evergreen' into 'master'
Auto dependencies upgrade by bot. See merge request aiursoft/chessserver!169
This commit is contained in:
+4
-1
@@ -50,7 +50,10 @@ test:
|
||||
- build
|
||||
coverage: '/TOTAL_COVERAGE=(\d+.\d+)/'
|
||||
script:
|
||||
- dotnet test *.sln --collect:"XPlat Code Coverage" --logger "junit;MethodFormat=Class;FailureBodyFormat=Verbose"
|
||||
- |
|
||||
dotnet test *.sln --collect:"XPlat Code Coverage" --logger "junit;MethodFormat=Class;FailureBodyFormat=Verbose" || \
|
||||
(echo "Test failed. Retrying in 10 seconds..." && sleep 10 && dotnet test *.sln --collect:"XPlat Code Coverage" --logger "junit;MethodFormat=Class;FailureBodyFormat=Verbose") || \
|
||||
(echo "Test failed again. Retrying in 20 seconds..." && sleep 20 && dotnet test *.sln --collect:"XPlat Code Coverage" --logger "junit;MethodFormat=Class;FailureBodyFormat=Verbose")
|
||||
- reportgenerator -reports:"**/coverage.cobertura.xml" -targetdir:"." -reporttypes:"cobertura"
|
||||
- COVERAGE_VALUE=$(grep -oPm 1 'line-rate="\K([0-9.]+)' "./Cobertura.xml")
|
||||
- COVERAGE_PERCENTAGE=$(echo "scale=2; $COVERAGE_VALUE * 100" | bc)
|
||||
|
||||
Reference in New Issue
Block a user