-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.ps1
27 lines (24 loc) · 1.26 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$locals = dotnet nuget locals all -l
ForEach ($local in $($locals -split "`r`n"))
{
$local = $local.Substring($local.IndexOf(":") + 2)
"Deleting from $local"
dotnet nuget delete Json.TestLogger 4.0.0-dev --force-english-output --non-interactive -s $local
}
Remove-Item .\test\package\bin\ -Recurse
Remove-Item .\test\package\obj\ -Recurse
dotnet pack
if ($?) {
dotnet test test/TestLogger.UnitTests/TestLogger.UnitTests.csproj -p:CollectCoverage=true -p:CoverletOutputFormat=opencover
dotnet test test/NUnit.Xml.TestLogger.UnitTests/NUnit.Xml.TestLogger.UnitTests.csproj -p:CollectCoverage=true -p:CoverletOutputFormat=opencover
dotnet test test/JUnit.Xml.TestLogger.UnitTests/JUnit.Xml.TestLogger.UnitTests.csproj -p:CollectCoverage=true -p:CoverletOutputFormat=opencover
}
if ($?) {
dotnet test test/TestLogger.AcceptanceTests/TestLogger.AcceptanceTests.csproj
dotnet test test/TestLogger.PackageTests/TestLogger.PackageTests.csproj
}
if ($?) {
dotnet test test/Xunit.Xml.TestLogger.AcceptanceTests/Xunit.Xml.TestLogger.AcceptanceTests.csproj
dotnet test test/NUnit.Xml.TestLogger.AcceptanceTests/NUnit.Xml.TestLogger.AcceptanceTests.csproj
dotnet test test/JUnit.Xml.TestLogger.AcceptanceTests/JUnit.Xml.TestLogger.AcceptanceTests.csproj
}