-
Notifications
You must be signed in to change notification settings - Fork 19
/
azure-pipelines.yml
50 lines (48 loc) · 1.67 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
48
49
50
jobs:
- job: ImportData
displayName: 'ImportData Job'
dependsOn: []
timeoutInMinutes: 90
variables:
defaultWorkingDir: '$(System.DefaultWorkingDirectory)\CS'
runSettingsPath: '$(defaultWorkingDir)\Tests\Tests.runsettings'
testsFolderPath: '$(defaultWorkingDir)\Tests'
dxFeedVar: '$(DXFeed)'
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
pool:
name: Self
steps:
- task: PowerShell@2
displayName: Build
continueOnError: false
inputs:
targetType: 'inline'
script: |
& sqllocaldb start mssqllocaldb
dotnet nuget add source $(dxFeedVar) --name DX
cd "$(defaultWorkingDir)"
dotnet build --configuration TEST
Get-ChildItem -Path "$(testsFolderPath)" -Recurse -Directory -Include "ref", "refint", "obj" | ForEach-Object { Remove-Item $_.FullName -Recurse -Force }
pwsh: true
- task: VSTest@3
displayName: 'ImportData.Test'
continueOnError: false
enabled: true
inputs:
minimumExpectedTests: "1"
failOnMinTestsNotRun: true
searchFolder: $(testsFolderPath)
testSelector: 'testAssemblies'
testAssemblyVer2: '**\OutlookInspired.Win.Tests.dll'
testFiltercriteria: TestCategory=ImportData
diagnosticsEnabled: true
codeCoverageEnabled: true
runSettingsFile: $(runSettingsPath)
- template: job-template.yml
parameters:
testAssembly: '**\OutlookInspired.Win.Tests.dll'
displayName: 'Windows'
- template: job-template.yml
parameters:
testAssembly: '**\OutlookInspired.Blazor.Tests.dll'
displayName: 'Blazor'