Browse Source

Create azure-pipelines.yml

Krzysztof Krysiński 5 years ago
parent
commit
828019e6c4
1 changed files with 30 additions and 0 deletions
  1. 30 0
      azure-pipelines.yml

+ 30 - 0
azure-pipelines.yml

@@ -0,0 +1,30 @@
+trigger:
+- dev
+
+pool:
+  vmImage: 'windows-latest'
+
+variables:
+  solution: '**/*.sln'
+  buildPlatform: 'Any CPU'
+  buildConfiguration: 'Release'
+
+steps:
+- task: NuGetToolInstaller@1
+
+- task: NuGetCommand@2
+  inputs:
+    restoreSolution: '$(solution)'
+- task: DotNetCoreCLI@2
+  displayName: Build
+  inputs:
+    command: 'build'
+    projects: '**/*.csproj'
+    arguments: '--configuration Release'
+
+- task: DotNetCoreCLI@2
+  displayName: Tests
+  inputs:
+    command: test
+    projects: '**/*Tests/*.csproj'  
+    arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'