Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #1

Merged
merged 7 commits into from
Oct 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk >=3.x'
inputs:
packageType: sdk
version: 3.x
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: 'src/**/*.csproj'
arguments: '--configuration $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)/out'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: 'test/**/*Tests/*.csproj'
arguments: '--configuration $(buildConfiguration) --logger trx'
- task: PublishBuildArtifacts@1
displayName: 'Publish out/ Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/out'
ArtifactName: 'out-$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Pack
inputs:
command: pack
includesource: true
includesymbols: true
nobuild: true
projects: 'src/**/*.csproj'
packDirectory: '$(Build.ArtifactStagingDirectory)/pkg'
- task: PublishBuildArtifacts@1
displayName: 'Publish pkg/ Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/pkg'
ArtifactName: 'pkg-$(buildConfiguration)'