-
Notifications
You must be signed in to change notification settings - Fork 57
/
azure-pipelines.yml
89 lines (75 loc) · 2.05 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#trigger:
#- master
#- releases/*
jobs:
# All tasks on Windows
- job: build_all_windows
displayName: Build all tasks (Windows)
condition: succeeded()
pool:
vmImage: vs2017-win2016
steps:
- template: _CI/build-all-steps.yml
parameters:
os: Windows_NT
# Publish on Windows
#- job: publish_windows
# displayName: Publish
# dependsOn:
# - build_all_windows
# condition: and(succeeded(), ne(variables['build.reason'], 'PullRequest'), eq(variables.os, 'Windows_NT'))
# pool:
# vmImage: vs2017-win2016
# steps:
# - template: _CI/publish-steps.yml
# All tasks on Linux
- job: build_all_linux
displayName: Build all tasks (Linux)
condition: succeeded()
pool:
vmImage: ubuntu-16.04
steps:
- template: _CI/build-all-steps.yml
parameters:
os: Linux
# All tasks on macOS
- job: build_all_darwin
displayName: Build all tasks (macOS)
condition: succeeded()
pool:
vmImage: macos-10.13
steps:
- template: _CI/build-all-steps.yml
parameters:
os: Darwin
# Single task
#- job: buildSingle
# displayName: Build single task
# condition: succeeded()
# steps:
# - template: _CI/build-single-steps.yml
# Run directly
- job: runNative
displayName: Run PSScriptAnalyzer Natively
condition: succeeded()
steps:
- task: PowerShell@2
displayName: 'Dump SourcesDirectory'
inputs:
targetType: 'inline'
script: 'Get-ChildItem -Path $(Build.Repository.LocalPath)'
- task: PowerShell@2
displayName: 'Install Pester'
inputs:
targetType: 'inline'
script: 'Install-Module -Name Pester -SkipPublisherCheck -Force -Verbose -Scope CurrentUser'
- task: PowerShell@2
displayName: 'Install PSScriptAnalyzer'
inputs:
targetType: 'inline'
script: 'Install-Module -Name PSScriptAnalyzer -SkipPublisherCheck -Force -Verbose -Scope CurrentUser'
- task: PowerShell@2
displayName: 'Run PSScriptAnalyzer 2'
inputs:
targetType: 'inline'
script: 'Invoke-ScriptAnalyzer -Path $(Build.SourcesDirectory) -EnableExit -IncludeDefaultRules -ReportSummary -Recurse'