-
Notifications
You must be signed in to change notification settings - Fork 69
/
azure-pipelines-public.yml
75 lines (69 loc) · 1.63 KB
/
azure-pipelines-public.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
trigger:
branches:
include:
- main
paths:
exclude:
- README.md
- CODE-OF-CONDUCT.md
- LICENSE
- .github/
- docs/
pr:
branches:
include:
- main
paths:
exclude:
- README.md
- CODE-OF-CONDUCT.md
- LICENSE
- .github/
- docs/
- images/
variables:
- template: /scripts/azure-pipelines-variables.yml@self
pool:
vmImage: windows-latest
jobs:
- job: build
displayName: Build
steps:
- template: /scripts/azure-pipelines-steps-prepare.yml@self
- pwsh: dotnet cake --target=build
displayName: Build everything
env:
JavaSdkDirectory: $(JAVA_HOME)
- publish: output
artifact: build
condition: always()
displayName: Upload Logs
- job: pack
displayName: Pack
steps:
- template: /scripts/azure-pipelines-steps-prepare.yml@self
- pwsh: dotnet cake --target=pack
displayName: Pack NuGet packages
env:
JavaSdkDirectory: $(JAVA_HOME)
- publish: output
artifact: pack
condition: always()
displayName: Upload Logs
- job: test
displayName: Test
steps:
- template: /scripts/azure-pipelines-steps-prepare.yml@self
- pwsh: dotnet cake --target=test
displayName: Run tests
env:
JavaSdkDirectory: $(JAVA_HOME)
- task: PublishTestResults@2
condition: always()
inputs:
testResultsFormat: VSTest
testResultsFiles: output/test-results/*.trx
- publish: output
artifact: test
condition: always()
displayName: Upload Logs