Restore tests before testing
This commit is contained in:
@@ -7,3 +7,4 @@ if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
|
|||||||
dotnet restore Discord.Net.sln
|
dotnet restore Discord.Net.sln
|
||||||
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
|
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
|
||||||
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
1
pack.ps1
1
pack.ps1
@@ -19,3 +19,4 @@ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
|||||||
dotnet pack "src\Discord.Net.Providers.WS4Net\Discord.Net.Providers.WS4Net.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build"
|
dotnet pack "src\Discord.Net.Providers.WS4Net\Discord.Net.Providers.WS4Net.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build"
|
||||||
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
dotnet pack "src\Discord.Net.Providers.UdpClient\Discord.Net.Providers.UdpClient.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build"
|
dotnet pack "src\Discord.Net.Providers.UdpClient\Discord.Net.Providers.UdpClient.csproj" -c "Release" -o "../../nupkgs" --no-build -p:BuildNumber="$build"
|
||||||
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
3
test.ps1
3
test.ps1
@@ -1 +1,4 @@
|
|||||||
|
dotnet restore test/Discord.Net.Tests/Discord.Net.Tests.csproj
|
||||||
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
dotnet test test/Discord.Net.Tests/Discord.Net.Tests.csproj
|
dotnet test test/Discord.Net.Tests/Discord.Net.Tests.csproj
|
||||||
|
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
|
||||||
Reference in New Issue
Block a user