-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Set up CI with Azure Pipelines * Modernize Nuget configuration * Run unit tests * Publish tested build output * Only archive SimpleBrowser output
- Loading branch information
Showing
6 changed files
with
45 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ASP.NET Core | ||
# Build and test ASP.NET Core projects targeting .NET Core. | ||
# Add steps that run tests, create a NuGet package, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | ||
|
||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
variables: | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- script: dotnet build --configuration $(buildConfiguration) | ||
displayName: 'dotnet build $(buildConfiguration)' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'dotnet test $(buildConfiguration)' | ||
inputs: | ||
command: test | ||
projects: '**/*Tests/*.csproj' | ||
arguments: '--configuration $(buildConfiguration)' | ||
|
||
- task: CopyFiles@2 | ||
displayName: 'Copy Files to: $(build.artifactstagingdirectory)' | ||
inputs: | ||
SourceFolder: '$(agent.builddirectory)' | ||
Contents: | | ||
**/SimpleBrowser/bin/**/SimpleBrowser.dll | ||
**/SimpleBrowser/bin/**/SimpleBrowser.pdb | ||
TargetFolder: '$(build.artifactstagingdirectory)' | ||
condition: succeededOrFailed() | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
inputs: | ||
PathtoPublish: '$(build.artifactstagingdirectory)' | ||
artifactName: drop | ||
condition: succeededOrFailed() |