Browse Source

Pack script fixes

tags/1.0-rc
RogueException 8 years ago
parent
commit
78c892b1bb
3 changed files with 9 additions and 3 deletions
  1. +2
    -2
      build.ps1
  2. +1
    -1
      pack.ps1
  3. +6
    -0
      test.ps1

+ 2
- 2
build.ps1 View File

@@ -1,10 +1,10 @@
if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
$build = [convert]::ToInt32($env:APPVEYOR_BUILD_NUMBER).ToString("00000")
$build = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
} else {
$build = "dev"
}

dotnet restore Discord.Net.sln
appveyor-retry dotnet restore Discord.Net.sln -v Minimal -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
dotnet build Discord.Net.sln -c "Release" -p:BuildNumber="$build"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }

+ 1
- 1
pack.ps1 View File

@@ -1,5 +1,5 @@
if (Test-Path Env:\APPVEYOR_BUILD_NUMBER) {
$build = [convert]::ToInt32($env:APPVEYOR_BUILD_NUMBER).ToString("00000")
$build = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, "0")
} else {
$build = "dev"
}


+ 6
- 0
test.ps1 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) }

Loading…
Cancel
Save