mirror of https://github.com/icsharpcode/ILSpy.git
2 changed files with 28 additions and 6 deletions
@ -0,0 +1,17 @@ |
|||||||
|
$majorVersion = 3; |
||||||
|
$minorVersion = 0; |
||||||
|
$revision = 0; |
||||||
|
$baseCommitHash = "d779383cb85003d6dabeb976f0845631e07bf463"; |
||||||
|
|
||||||
|
if ($env:APPVEYOR_REPO_BRANCH -ne 'master') { |
||||||
|
$branch = "-$env:APPVEYOR_REPO_BRANCH"; |
||||||
|
} else { |
||||||
|
$branch = ""; |
||||||
|
} |
||||||
|
|
||||||
|
$build = git rev-list --count "$baseCommitHash..HEAD"; |
||||||
|
|
||||||
|
$newVersion="$majorVersion.$minorVersion.$revision.$build"; |
||||||
|
$env:ilspy_version_number=$newVersion; |
||||||
|
$env:appveyor_build_version="$newVersion$branch"; |
||||||
|
appveyor UpdateBuild -Version "$newVersion$branch"; |
@ -1,18 +1,23 @@ |
|||||||
version: 1.0.{build} |
|
||||||
configuration: Debug |
|
||||||
platform: Any CPU |
platform: Any CPU |
||||||
|
configuration: |
||||||
|
- Debug |
||||||
|
- Release |
||||||
image: Visual Studio 2017 |
image: Visual Studio 2017 |
||||||
install: |
install: |
||||||
- git submodule update --init --recursive |
- git submodule update --init --recursive |
||||||
# force update ILSpy-tests to the latest ref |
- ps: .\BuildTools\appveyor-install.ps1 |
||||||
- git submodule update --remote ILSpy-tests |
|
||||||
before_build: |
before_build: |
||||||
- nuget restore ILSpy.sln |
- nuget restore ILSpy.sln |
||||||
build_script: |
build_script: |
||||||
- msbuild ILSpy.sln /v:minimal /p:ResolveNuGetPackages=false "/logger:%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
- msbuild ILSpy.sln /v:minimal /p:ResolveNuGetPackages=false "/logger:%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
||||||
|
after_build: |
||||||
|
- 7z a ILSpy_%APPVEYOR_REPO_BRANCH%_%ILSPY_VERSION_NUMBER%_Binaries.zip %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net461\*.dll %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net461\*.exe %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net461\*.config |
||||||
test: |
test: |
||||||
assemblies: |
assemblies: |
||||||
- 'ICSharpCode.Decompiler.Tests\bin\Debug\net461\ICSharpCode.Decompiler.Tests.exe' |
- 'ICSharpCode.Decompiler.Tests\bin\%configuration%\net461\ICSharpCode.Decompiler.Tests.exe' |
||||||
- 'ILSpy.BamlDecompiler.Tests\bin\Debug\net461\ILSpy.BamlDecompiler.Tests.dll' |
- 'ILSpy.BamlDecompiler.Tests\bin\%configuration%\net461\ILSpy.BamlDecompiler.Tests.dll' |
||||||
after_test: |
after_test: |
||||||
- python BuildTools\tidy.py |
- python BuildTools\tidy.py |
||||||
|
artifacts: |
||||||
|
- path: ILSpy_binaries.zip |
||||||
|
name: ILSpy %APPVEYOR_REPO_BRANCH% %ILSPY_VERSION_NUMBER% binaries |
Loading…
Reference in new issue