|
@@ -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"'
|