-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
42 lines (39 loc) · 1.18 KB
/
azure-pipelines.yml
File metadata and controls
42 lines (39 loc) · 1.18 KB
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
name: continuous.$(date:yyyyMMdd)$(rev:.r)
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
# Install .NET SDK
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '10.0.x'
displayName: 'Install SDK 10.0.x'
# Build and test
- script: |
dotnet build Silverback.sln --configuration $(buildConfiguration) -warnaserror | tee build.log && grep -q 'Build succeeded' build.log
displayName: 'Build ($(buildConfiguration))'
- script: |
dotnet test Silverback.sln \
--configuration $(buildConfiguration) \
--no-build \
--verbosity Normal \
--logger trx \
--filter "Type!=E2E&Dependency!=Docker&CI!=Skip"
displayName: 'Run unit tests'
- script: |
dotnet test Silverback.sln \
--configuration $(buildConfiguration) \
--no-build \
--verbosity Normal \
--logger trx \
--filter "Type=E2E&Dependency!=Docker&CI!=Skip"
displayName: 'Run E2E tests'
# Publish results
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: 'VSTest'
testResultsFiles: '**/*.trx'
displayName: 'Publish test results'