-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've made a couple of stability improvements by updating various packages to their latest versions. Additionally we've added a continuous integration and continuous delivery pipeline based on Azure DevOps so we can more easily dogfood these tools.
- Loading branch information
1 parent
4909de8
commit 4b27614
Showing
28 changed files
with
428 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
next-version: 0.1.0 | ||
next-version: 0.2.0 | ||
mode: ContinuousDeployment | ||
branches: {} | ||
ignore: | ||
sha: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# .NET Desktop | ||
# Build and run tests for .NET Desktop or Windows classic desktop solutions. | ||
# Add steps that publish symbols, save build artifacts, and more: | ||
# https://docs.microsoft.com/vsts/pipelines/apps/windows/dot-net | ||
|
||
variables: | ||
solution: '**/*.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
jobs: | ||
- job: Windows | ||
pool: | ||
vmImage: 'VS2017-Win2016' | ||
steps: | ||
- task: NuGetToolInstaller@0 | ||
|
||
- task: GitVersion@3 | ||
inputs: | ||
updateAssemblyInfo: true | ||
|
||
- task: NuGetCommand@2 | ||
inputs: | ||
restoreSolution: '$(solution)' | ||
|
||
- task: VSBuild@1 | ||
inputs: | ||
solution: '$(solution)' | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
msbuildArgs: '/p:Version=$(GitVersion.MajorMinorPatch) /p:InformationalVersion=$(GitVersion.InformationalVersion)' | ||
|
||
- task: VSTest@2 | ||
inputs: | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
testAssemblyVer2: '$(Build.SourcesDirectory)\src\Augurk.CSharpAnalyzer.Specifications\bin\$(buildConfiguration)\Augurk.CSharpAnalyzer.Specifications.dll' | ||
codeCoverageEnabled: True | ||
otherConsoleOptions: '/platform:X64' | ||
|
||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(Build.SourcesDirectory)\src\Augurk.CSharpAnalyzer.NetFx\bin\$(buildConfiguration)' | ||
includeRootFolder: false | ||
archiveType: zip | ||
archiveFile: '$(Build.ArtifactStagingDirectory)\Augurk.CSharpAnalyzer-win-x64-$(Build.BuildNumber).zip' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathToPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: Windows | ||
publishLocation: Container | ||
|
||
- powershell: | | ||
echo "##vso[task.setvariable variable=GitVersion.MajorMinorPatch;isOutput=true]$(GitVersion.MajorMinorPatch)" | ||
echo "##vso[task.setvariable variable=GitVersion.InformationalVersion;isOutput=true]$(GitVersion.InformationalVersion)" | ||
echo "##vso[task.setvariable variable=Build.BuildNumber;isOutput=true]$(Build.BuildNumber)" | ||
name: setOutputVariables | ||
- job: macOS | ||
dependsOn: Windows # For now, since we can't run GitVersion on macOS | ||
pool: | ||
vmImage: macOS-10.13 | ||
variables: | ||
GitVersion.MajorMinorPatch: $[dependencies.Windows.outputs['setOutputVariables.GitVersion.MajorMinorPatch']] | ||
GitVersion.InformationalVersion: $[dependencies.Windows.outputs['setOutputVariables.GitVersion.InformationalVersion']] | ||
Build.BuildNumber: $[dependencies.Windows.outputs['setOutputVariables.Build.BuildNumber']] | ||
steps: | ||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: build | ||
projects: 'src/Augurk.CSharpAnalyzer.NetCore/Augurk.CSharpAnalyzer.NetCore.csproj' | ||
arguments: '-r osx-x64 -c $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
enabled: false # For now since we don't have a viable testing project | ||
inputs: | ||
command: test | ||
projects: 'src/Augurk.CSharpAnalyzer.UnitTest/Augurk.CSharpAnalyzer.UnitTest.csproj' | ||
continueOnError: true | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: publish | ||
projects: 'src/Augurk.CSharpAnalyzer.NetCore/Augurk.CSharpAnalyzer.NetCore.csproj' | ||
arguments: '-r osx-x64 -c $(buildConfiguration) /p:Version=$(GitVersion.MajorMinorPatch) /p:InformationalVersion=$(GitVersion.InformationalVersion)' | ||
zipAfterPublish: false | ||
publishWebProjects: false | ||
|
||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(Build.SourcesDirectory)/src/Augurk.CSharpAnalyzer.NetCore/bin/$(buildConfiguration)/netcoreapp2.1/osx-x64/publish/' | ||
includeRootFolder: false | ||
archiveType: zip | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/Augurk.CSharpAnalyzer-osx-x64-$(Build.BuildNumber).zip' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathToPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: macOS | ||
publishLocation: Container | ||
|
||
- job: Linux | ||
dependsOn: Windows # For now, since we can't run GitVersion on macOS | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
variables: | ||
GitVersion.MajorMinorPatch: $[dependencies.Windows.outputs['setOutputVariables.GitVersion.MajorMinorPatch']] | ||
GitVersion.InformationalVersion: $[dependencies.Windows.outputs['setOutputVariables.GitVersion.InformationalVersion']] | ||
Build.BuildNumber: $[dependencies.Windows.outputs['setOutputVariables.Build.BuildNumber']] | ||
steps: | ||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: build | ||
projects: 'src/Augurk.CSharpAnalyzer.NetCore/Augurk.CSharpAnalyzer.NetCore.csproj' | ||
arguments: '-r linux-x64 -c $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
enabled: false # For now since we don't have a viable testing project | ||
inputs: | ||
command: test | ||
projects: 'src/Augurk.CSharpAnalyzer.UnitTest/Augurk.CSharpAnalyzer.UnitTest.csproj' | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: publish | ||
projects: 'src/Augurk.CSharpAnalyzer.NetCore/Augurk.CSharpAnalyzer.NetCore.csproj' | ||
arguments: '-r linux-x64 -c $(buildConfiguration) /p:Version=$(GitVersion.MajorMinorPatch) /p:InformationalVersion=$(GitVersion.InformationalVersion)' | ||
zipAfterPublish: false | ||
publishWebProjects: false | ||
|
||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(Build.SourcesDirectory)/src/Augurk.CSharpAnalyzer.NetCore/bin/$(buildConfiguration)/netcoreapp2.1/linux-x64/publish/' | ||
includeRootFolder: false | ||
archiveType: zip | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/Augurk.CSharpAnalyzer-linux-x64-$(Build.BuildNumber).zip' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathToPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: Linux | ||
publishLocation: Container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
src/Augurk.CSharpAnalyzer.NetCore/Augurk.CSharpAnalyzer.NetCore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.