-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathazure-pipelines.yml
44 lines (38 loc) · 997 Bytes
/
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
schedules:
- cron: "0 3 * * Mon"
displayName: Weekly build
branches:
include:
- master
always: true
jobs:
- job: 'ParallelTesting'
pool:
vmImage: 'ubuntu-20.04'
strategy:
parallel: 5
displayName: Run tests in parallel
steps:
- task: UseDotNet@2
displayName: 'Use .NET sdk 8.0.x'
inputs:
version: 8.0.x
performMultiLevelLookup: true
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
- bash: |
tests=($(dotnet test . --no-build --list-tests | grep Test_))
. 'create_slicing_filter_condition.sh' $tests
displayName: 'Create slicing filter condition'
- bash: |
echo "Slicing filter condition: $(targetTestsFilter)"
displayName: 'Echo slicing filter condition'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '**/*Tests/*Tests.csproj'
arguments: '--no-build --filter "$(targetTestsFilter)"'