Browse Source

Add appveyor-ilspycmd.yml

pull/863/head
Siegfried Pammer 8 years ago
parent
commit
40708841d5
  1. 31
      BuildTools/appveyor-ilspycmd-install.ps1
  2. 2
      BuildTools/appveyor-install.ps1
  3. 19
      appveyor-ilspycmd.yml

31
BuildTools/appveyor-ilspycmd-install.ps1

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
$ErrorActionPreference = "Stop"
$baseCommit = "e17b4bfedf4dc747b105396224cd726bdca500ad";
$baseCommitRev = 1;
$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs";
$versionParts = @{};
Get-Content $globalAssemblyInfoTemplateFile | where { $_ -match 'string (\w+) = "?(\w+)"?;' } | foreach { $versionParts.Add($Matches[1], $Matches[2]) }
$major = $versionParts.Major;
$minor = $versionParts.Minor;
$build = $versionParts.Build;
$versionName = $versionParts.VersionName;
if ($versionName -ne "null") {
$versionName = "-$versionName";
} else {
$versionName = "";
}
if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
$branch = "-$env:APPVEYOR_REPO_BRANCH";
} else {
$branch = "";
}
$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev;
$newVersion="$major.$minor.$build.$revision";
$env:appveyor_build_version="$newVersion$branch$versionName";
appveyor UpdateBuild -Version "$newVersion$branch$versionName";

2
BuildTools/appveyor-install.ps1

@ -24,7 +24,7 @@ if ($env:APPVEYOR_REPO_BRANCH -ne 'master') { @@ -24,7 +24,7 @@ if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {
$branch = "";
}
$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + 1;
$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev;
$newVersion="$major.$minor.$build.$revision";
$env:appveyor_build_version="$newVersion$branch$versionName";

19
appveyor-ilspycmd.yml

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
platform: Any CPU
configuration:
- Debug
- Release
image: Visual Studio 2017
install:
- git submodule update --init --recursive
- ps: .\BuildTools\appveyor-ilspycmd-install.ps1
dotnet_csproj:
patch: true
file: 'ICSharpCode.Decompiler.Console\ICSharpCode.Decompiler.Console.csproj'
version: '{version}'
package_version: '{version}'
before_build:
- nuget restore ICSharpCode.Decompiler.Console.sln
build_script:
- msbuild ICSharpCode.Decompiler.Console.sln /v:minimal /p:ResolveNuGetPackages=false "/logger:%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_test:
- python BuildTools\tidy.py
Loading…
Cancel
Save