forked from microsoft/ApplicationInsights-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.user.windows.yml
72 lines (72 loc) · 2.17 KB
/
pipeline.user.windows.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
environment:
host:
os: 'windows'
flavor: 'server'
version: '2019'
runtime:
provider: 'appcontainer'
image: 'cdpxwin1809.azurecr.io/global/vse2019:latest'
source_mode: 'link'
versioning:
commands:
- !!defaultcommand
name: 'Generate Version'
command: '.scripts/version.cmd'
# excluding our source code from being scanned for code sign validation
signing_options:
profile: 'none'
codesign_validation_glob_pattern: '-:regex|\.(ps1|cmd|psm1)$;-|.gdn\\**'
static_analysis_options:
policheck_options:
disable_tool_scan: false
fail_on_error: true
restore:
commands:
- !!defaultcommand
name: 'Install Windows 10 SDK'
command: '.scripts/installWindows10Sdk.cmd'
logs:
- from: 'WinSdkInstall'
to: 'WinSdkInstall'
include:
- '**/*.log'
- !!defaultcommand
name: 'Install Java 11 JDK'
command: '.scripts/installJava11jdk.cmd'
- !!defaultcommand
name: 'Add OpenTelemetry to MavenLocal'
command: '.scripts/ot-gradle.cmd'
arguments: 'publishToMavenLocal --refresh-dependencies'
- !!defaultcommand
name: 'Clean and Resolve Dependencies'
command: '.scripts/gradle.cmd'
arguments: 'clean resolveDependencies --refresh-dependencies'
- !!defaultcommand
name: 'List Installation Information'
command: '.scripts/dumpInstallationInfo.cmd'
test:
commands:
# - !!defaultcommand
# name: 'Gradle Static Analysis'
# command: '.scripts/gradle.cmd'
# arguments: 'check -x test'
# logs:
# - to: 'Checks Reports'
# include:
# - '**/build/reports/**/*'
# exclude:
# - '**/build/reports/tests/**/*'
- !!testcommand
name: 'ApplicationInsights-Java Unit Tests'
command: '.scripts/gradle.cmd'
arguments: 'test'
fail_on_stderr: false
testresults:
- title: ':Unit Test Results'
type: 'junit'
include:
- '**/build/test-results/test/**/*'
logs:
- to: 'Test Logs'
include:
- '**/build/reports/tests/**/*'