Browse Source

Add PR suffix in BuildTools/appveyor-install.ps1

pull/892/merge
Siegfried Pammer 8 years ago
parent
commit
7450a19a8e
  1. 9
      BuildTools/appveyor-install.ps1

9
BuildTools/appveyor-install.ps1

@ -23,9 +23,14 @@ if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
} else { } else {
$branch = ""; $branch = "";
} }
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER";
} else {
$suffix = "";
}
$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev; $revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev;
$newVersion="$major.$minor.$build.$revision"; $newVersion="$major.$minor.$build.$revision";
$env:appveyor_build_version="$newVersion$branch$versionName"; $env:appveyor_build_version="$newVersion$branch$versionName$suffix";
appveyor UpdateBuild -Version "$newVersion$branch$versionName"; appveyor UpdateBuild -Version "$newVersion$branch$versionName$suffix";
Loading…
Cancel
Save