Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from gavinsteinhoff/main
Browse files Browse the repository at this point in the history
Added CI to project with Azure Pipelines
  • Loading branch information
dimaguy authored Nov 26, 2020
2 parents 047601f + db9dde8 commit 75078d3
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 59 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/dotnet-core.yml

This file was deleted.

12 changes: 1 addition & 11 deletions ImpostorHQ.Command/Impostor.Command.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Impostor.Commands.Core", "Impostor.Commands.Core\Impostor.Commands.Core.csproj", "{1E86A8D8-C0B4-4194-9274-C93885A6FD84}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monitors.Tests", "Monitors.Tests\Monitors.Tests.csproj", "{EE7778C7-9863-4BBC-9DDE-4B95AF946416}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LogParser", "LogParser\LogParser.csproj", "{0D072C9E-1BDA-478A-90C3-144CD637FB40}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plugin.Test", "Plugin.Test\Plugin.Test.csproj", "{C916DC6C-D2AD-4869-9B5E-8C79D83A14AD}"
Expand All @@ -17,7 +15,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImpostorHQ.Plugin.Fashionab
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImpostorHQ.Plugin.Fashionable.Designer", "ImpostorHQ.Plugin.Fashionable.Designer\ImpostorHQ.Plugin.Fashionable.Designer.csproj", "{76E59656-C45F-4F28-A184-9CB15EE5AF73}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImpostorHQ.Plugin.HallOfShame", "ImpostorHQ.Plugin.HallOfShame\ImpostorHQ.Plugin.HallOfShame.csproj", "{6E531144-02F5-46A3-9758-D660A09EE7C0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImpostorHQ.Plugin.HallOfShame", "ImpostorHQ.Plugin.HallOfShame\ImpostorHQ.Plugin.HallOfShame.csproj", "{6E531144-02F5-46A3-9758-D660A09EE7C0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -35,14 +33,6 @@ Global
{1E86A8D8-C0B4-4194-9274-C93885A6FD84}.Release_Ubuntu|Any CPU.Build.0 = Release|Any CPU
{1E86A8D8-C0B4-4194-9274-C93885A6FD84}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E86A8D8-C0B4-4194-9274-C93885A6FD84}.Release|Any CPU.Build.0 = Release|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Debug_Ubuntu|Any CPU.ActiveCfg = Debug|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Debug_Ubuntu|Any CPU.Build.0 = Debug|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Release_Ubuntu|Any CPU.ActiveCfg = Release|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Release_Ubuntu|Any CPU.Build.0 = Release|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE7778C7-9863-4BBC-9DDE-4B95AF946416}.Release|Any CPU.Build.0 = Release|Any CPU
{0D072C9E-1BDA-478A-90C3-144CD637FB40}.Debug_Ubuntu|Any CPU.ActiveCfg = Debug|Any CPU
{0D072C9E-1BDA-478A-90C3-144CD637FB40}.Debug_Ubuntu|Any CPU.Build.0 = Debug|Any CPU
{0D072C9E-1BDA-478A-90C3-144CD637FB40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Expand Down
110 changes: 87 additions & 23 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# .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/azure/devops/pipelines/apps/windows/dot-net

# Made by Gavin Steinhoff
trigger:
- main
branches:
include:
- main
paths:
exclude:
- ImpostorHQ.Dashboard/*

pr:
branches:
include:
- main
paths:
exclude:
- ImpostorHQ.Dashboard/*

pool:
vmImage: 'windows-latest'
Expand All @@ -15,29 +24,84 @@ variables:
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: DotNetCoreCLI@2
- task: NuGetCommand@2
displayName: Nuget Restore
inputs:
command: 'build'
projects: 'Impostor.Commands.Core\Impostor.Commands.Core.csproj'
- task: DotNetCoreCLI@2
command: 'restore'
restoreSolution: '**/ImpostorHQ.Plugin.Fashionable.Designer.csproj'
feedsToUse: 'select'
- task: MSBuild@1
displayName: MS Build
inputs:
command: 'build'
projects: 'Format.SEL\Format.SEL.csproj'
solution: '**/ImpostorHQ.Plugin.Fashionable.Designer.csproj'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: ".Net Restore"
inputs:
command: 'build'
projects: 'ImpostorHQ.Plugin.Fashionable\ImpostorHQ.Plugin.Fashionable.csproj'
command: 'restore'
projects: |
**/*.csproj
!**/ImpostorHQ.Plugin.Fashionable.Designer.csproj
arguments: '--configuration $(buildConfiguration)'

- task: DotNetCoreCLI@2
displayName: ".Net Build"
inputs:
command: 'build'
projects: 'ImpostorHQ.Plugin.HallOfShame\ImpostorHQ.Plugin.HallOfShame.csproj'
- task: DotNetCoreCLI@2
projects: |
**/*.csproj
!**/ImpostorHQ.Plugin.Fashionable.Designer.csproj
arguments: '--configuration $(buildConfiguration) --no-restore'
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
command: 'build'
projects: 'LogParser\LogParser.csproj'
- task: DotNetCoreCLI@2
Contents: '**/Impostor.Commands.Core.dll'
TargetFolder: '$(Build.ArtifactStagingDirectory)/ImpostorCommandsCore'
flattenFolders: true
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
command: 'build'
projects: 'Plugin.Test\Plugin.Test.csproj'
Contents: '**/ImpostorHQ.Plugin.Fashionable.dll'
TargetFolder: '$(Build.ArtifactStagingDirectory)/ImpostorHQPlugin'
flattenFolders: true
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
Contents: '**/ImpostorHQ.Plugin.HallOfShame.dll'
TargetFolder: '$(Build.ArtifactStagingDirectory)/ImpostorHQPlugin'
flattenFolders: true
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
Contents: '**/Plugin.Test.dll'
TargetFolder: '$(Build.ArtifactStagingDirectory)/ImpostorHQPlugin'
flattenFolders: true
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
Contents: '**/LogParser.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)/LogParser'
flattenFolders: true
- task: CopyFiles@2
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
Contents: '**/ImpostorHQ.Plugin.Fashionable.Designer.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)/FashionableDesigner'
flattenFolders: true

- publish: '$(Build.ArtifactStagingDirectory)/ImpostorCommandsCore'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
artifact: ImpostorCommandsCore

- publish: '$(Build.ArtifactStagingDirectory)/ImpostorHQPlugin'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
artifact: ImpostorHQPlugins

- publish: '$(Build.ArtifactStagingDirectory)/LogParser'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
artifact: LogParser

- publish: '$(Build.ArtifactStagingDirectory)/FashionableDesigner'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
artifact: FashionableDesigner

0 comments on commit 75078d3

Please sign in to comment.