Pack script fixes

This commit is contained in:
RogueException
2017-01-25 16:56:23 -04:00
parent f3ba4b6f99
commit 78c892b1bb
3 changed files with 9 additions and 3 deletions

View File

@@ -1,2 +1,8 @@
if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
$build = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
} else {
$build = "dev"
}
dotnet test test/Discord.Net.Tests/Discord.Net.Tests.csproj -c "Release" --noBuild -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }