From 64ec29196b91bb8ae5f1408654dc132bbbbef70e Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Sun, 14 Oct 2018 18:06:16 +0200 Subject: [PATCH] Azure pipelines: tests and pack --- azure-pipelines.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc83a58..13eecb1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,3 +12,19 @@ variables: 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: DotNetCoreCLI@2 + inputs: + command: 'pack' + packagesToPack: '**/*.csproj' + configuration: 'release' + +- task: PublishBuildArtifacts@1 + displayName: 'publish artifacts'