Browse Source

Add 3.0.x branch handling to appveyor-install.ps1

pull/1039/head
Siegfried Pammer 8 years ago
parent
commit
c3e1f41009
  1. 8
      BuildTools/appveyor-install.ps1

8
BuildTools/appveyor-install.ps1

@ -3,6 +3,8 @@ $ErrorActionPreference = "Stop"
$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463"; $baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463";
$baseCommitRev = 1; $baseCommitRev = 1;
$masterBranches = @("master", "3.0.x");
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs"; $globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
$versionParts = @{}; $versionParts = @{};
@ -18,10 +20,10 @@ if ($versionName -ne "null") {
} else { } else {
$versionName = ""; $versionName = "";
} }
if ($env:APPVEYOR_REPO_BRANCH -ne 'master') { if ($masterBranches -contains $env:APPVEYOR_REPO_BRANCH) {
$branch = "-$env:APPVEYOR_REPO_BRANCH";
} else {
$branch = ""; $branch = "";
} else {
$branch = "-$env:APPVEYOR_REPO_BRANCH";
} }
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER"; $suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER";

Loading…
Cancel
Save