Restore tests before testing

This commit is contained in:
RogueException
2017-01-24 17:10:37 -04:00
parent b5571d09ce
commit d043b8daea
3 changed files with 16 additions and 11 deletions

View File

@@ -7,3 +7,4 @@ if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
dotnet restore Discord.Net.sln
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }

View File

@@ -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"
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"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }

View File

@@ -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
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }