-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (40 loc) · 1.28 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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-16.04'
steps:
- task: DotNetCoreInstaller@1
displayName: Install .Net Core SDK
inputs:
packageType: 'sdk'
version: '5.x'
includePreviewVersions: true
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(BuildConfiguration)'
- task: Bash@3
displayName: Test
inputs:
targetType: inline
script: find . -name "*.Tests.csproj" -exec dotnet test '{}' --configuration $(buildConfiguration) --filter "FailureExpected!=true" --collect "Code coverage" --logger trx --results-directory $(Agent.TempDirectory) \;
failOnStderr: true
- task: DotNetCoreCLI@2
displayName: Test (old)
enabled: false
inputs:
command: test
projects: '**/*.Tests/*.csproj'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage" --logger trx --results-directory $(Agent.TempDirectory)'
- task: PublishTestResults@2
displayName: Publish test results
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
searchFolder: '$(Agent.TempDirectory)'