test: update appveyor.test.ps1

This commit is contained in:
Argo Zhang 2019-06-04 10:27:13 +08:00
parent 4cd8d6c9f4
commit f7d0ae0f49
1 changed files with 15 additions and 14 deletions

View File

@ -51,7 +51,14 @@ if ("$($env:APPVEYOR_REPO_BRANCH)" -eq "master") {
if ("$($env:APPVEYOR_REPO_PROVIDER)" -eq "gitHub") {
coverallUnitTest
}
else {
write-warning "Coveralls has been skipped because current provider is ""$($env:APPVEYOR_REPO_PROVIDER)"""
write-host "dotnet test UnitTest without Coveralls" -ForegroundColor Cyan
dotnet test UnitTest --no-restore
}
}
elseif ("$($env:APPVEYOR_REPO_PROVIDER)" -eq "gitLab") {
installDB
coverallUnitTest
Set-AppveyorBuildVariable COVERALLS_REPO_TOKEN $($env:COVERALLS_REPO_TOKEN_GITLAB)
@ -65,12 +72,6 @@ if ("$($env:APPVEYOR_REPO_BRANCH)" -eq "master") {
}
cmd.exe /c "$codecovCmd -f ""coverage.opencover.xml"""
}
else {
write-warning "Coveralls has been skipped because current provider is ""$($env:APPVEYOR_REPO_PROVIDER)"""
write-host "dotnet test UnitTest without Coveralls" -ForegroundColor Cyan
dotnet test UnitTest --no-restore
}
}
else {
write-warning "UnitTest has been skipped because current branch is ""$($env:APPVEYOR_REPO_BRANCH)"""
}