Browse Source

Remove build definitions for AppVeyor and Azure DevOps

pull/2309/head
Christoph Wille 4 years ago
parent
commit
e2fd9eb7cd
  1. 55
      appveyor.yml
  2. 111
      azure-pipelines.yml

55
appveyor.yml

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
platform: Any CPU
configuration:
- Debug
- Release
image: Visual Studio 2019
init:
# force git to use crlf: otherwise dotnet-format --check fails
- git config --global core.autocrlf true
install:
- git submodule update --init --recursive
- pwsh .\BuildTools\appveyor-install.ps1
- dotnet tool install dotnet-format --tool-path BuildTools --version 4.1.131201
nuget:
account_feed: false
project_feed: true
disable_publish_on_pr: true
before_build:
- nuget restore ILSpy.sln
build_script:
- msbuild ILSpy.sln /v:minimal /p:ResolveNuGetPackages=false "/logger:%ProgramFiles%\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- 7z a ILSpy_binaries.zip %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net472\*.dll %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net472\*.exe %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net472\*.config %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net472\*\ILSpy.resources.dll %APPVEYOR_BUILD_FOLDER%\ILSpy\bin\%configuration%\net472\*\ILSpy.ReadyToRun.Plugin.resources.dll
test_script:
- vstest.console.exe /logger:Appveyor /Parallel "ICSharpCode.Decompiler.Tests\bin\%configuration%\net472\ICSharpCode.Decompiler.Tests.exe" "ILSpy.Tests\bin\%configuration%\net472\ILSpy.Tests.exe" "ILSpy.BamlDecompiler.Tests\bin\%configuration%\net472\ILSpy.BamlDecompiler.Tests.exe"
after_test:
- python BuildTools\tidy.py
- .\BuildTools\dotnet-format --check --verbosity diagnostic ILSpy.sln
for:
- branches:
except:
- master
artifacts:
#nothing
- branches:
only:
- master
- /release\/*/
artifacts:
- path: ILSpy_binaries.zip
name: ILSpy %APPVEYOR_REPO_BRANCH% %ILSPY_VERSION_NUMBER% binaries
- path: '**\*.vsix'
name: ILSpy AddIn for Visual Studio
- path: '**\*.nupkg'
name: ICSharpCode.Decompiler %APPVEYOR_REPO_BRANCH% %ILSPY_VERSION_NUMBER% NuGet

111
azure-pipelines.yml

@ -1,111 +0,0 @@ @@ -1,111 +0,0 @@
trigger:
- master
- release/*
pr:
- master
- release/*
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
BuildPlatform: Any CPU
jobs:
- job: Build
pool:
vmImage: windows-2019
strategy:
matrix:
Config_Release_Zip:
BuildConfiguration: Release
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Debug_Zip:
BuildConfiguration: Debug
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Release_CI:
BuildConfiguration: Release
ReleaseChannel: CI
Solution: ILSpy.WithPackage.sln
Config_Release_Store:
BuildConfiguration: Release
ReleaseChannel: Store
Solution: ILSpy.WithPackage.sln
steps:
# force git to use crlf: otherwise dotnet-format --check fails
- powershell: git config --global core.autocrlf true
- checkout: self
submodules: recursive
- task: UseDotNet@2
displayName: 'Install .NET Core 3.1'
inputs:
packageType: sdk
version: '3.1.x'
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: 'Install dotnet format'
inputs:
command: 'custom'
custom: 'tool'
arguments: 'install dotnet-format --tool-path $(Agent.ToolsDirectory)/dotnet-format --version 4.1.131201'
- script: pwsh .\BuildTools\pipelines-install.ps1
displayName: Install
- task: MSBuild@1
displayName: Restore ILSpy
inputs:
solution: $(Solution)
msbuildArguments: /t:restore
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
- task: MSBuild@1
displayName: Build ILSpy
inputs:
solution: $(Solution)
msbuildArguments: /p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\\"
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
- task: VSTest@2
displayName: Test
inputs:
testSelector: testAssemblies
testAssemblyVer2: |
ICSharpCode.Decompiler.Tests\bin\$(BuildConfiguration)\net472\ICSharpCode.Decompiler.Tests.exe
ILSpy.Tests\bin\$(BuildConfiguration)\net472\ILSpy.Tests.exe
ILSpy.BamlDecompiler.Tests\bin\$(BuildConfiguration)\net472\ILSpy.BamlDecompiler.Tests.exe
- task: ArchiveFiles@1
displayName: Create zip
inputs:
archiveType: zip
rootFolder: ILSpy/bin/$(BuildConfiguration)/net472
archiveFile: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\ILSpy.$(Build.BuildNumber).zip
includeRootFolder: false
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))
- script: python BuildTools\tidy.py
displayName: Tab check
- task: CopyFiles@2
displayName: Move VSIX to publish directory
inputs:
contents: |
**\*.vsix
**\*.nupkg
targetFolder: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
flattenFolders: true
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))
- task: PublishPipelineArtifact@0
displayName: Publish $(ReleaseChannel) $(BuildConfiguration)
inputs:
targetPath: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
artifactName: $(ReleaseChannel) - $(BuildConfiguration)
Loading…
Cancel
Save