Permalink
Browse files

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

  • Loading branch information...
siegfriedpammer committed Dec 21, 2017
1 parent 98b22f3 commit c3e1f4100914b3a703e73c0ba12f5300a30867b7
Showing with 5 additions and 3 deletions.
  1. +5 −3 BuildTools/appveyor-install.ps1
@@ -3,6 +3,8 @@ $ErrorActionPreference = "Stop"
$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463";
$baseCommitRev = 1;
$masterBranches = @("master", "3.0.x");
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
$versionParts = @{};
@@ -18,10 +20,10 @@ if ($versionName -ne "null") {
} else {
$versionName = "";
}
if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
$branch = "-$env:APPVEYOR_REPO_BRANCH";
} else {
if ($masterBranches -contains $env:APPVEYOR_REPO_BRANCH) {
$branch = "";
} else {
$branch = "-$env:APPVEYOR_REPO_BRANCH";
}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
$suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER";

0 comments on commit c3e1f41

Please sign in to comment.