-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalytics.yml
More file actions
92 lines (84 loc) · 2.5 KB
/
Copy pathanalytics.yml
File metadata and controls
92 lines (84 loc) · 2.5 KB
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
90
91
92
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
variables:
- template: templates/utils/variables.yml
resources:
repositories:
- repository: Library
type: github
endpoint: github.com_surveyjsdeveloper
name: surveyjs/survey-library
ref: $(System.PullRequest.TargetBranch)
- repository: Creator
type: github
endpoint: github.com_surveyjsdeveloper
name: surveyjs/survey-creator
ref: $(System.PullRequest.TargetBranch)
- repository: Analytics
type: github
endpoint: github.com_surveyjsdeveloper
name: surveyjs/survey-analytics
ref: $(System.PullRequest.TargetBranch)
- repository: PDF
type: github
endpoint: github.com_surveyjsdeveloper
name: surveyjs/survey-pdf
ref: $(System.PullRequest.TargetBranch)
stages:
- stage: Lint
dependsOn: []
jobs:
- job:
steps:
- checkout: self
timeoutInMinutes: 5
retryCountOnTaskFailure: 5
fetchDepth: 1
- template: templates/utils/npm.yml
parameters:
directories:
- $(Build.SourcesDirectory)
- script: npm run lint
workingDirectory: $(Build.SourcesDirectory)
- stage: Options
dependsOn: []
jobs:
- job: PRTitle
displayName: "Parse PR title"
steps:
- template: templates/utils/pr_title_parser.yml
- job: Commit
displayName: "Commit message"
steps:
- template: templates/utils/commit_message_parser.yml
- stage: LibraryCoreBuild
displayName: "Library Core Build"
dependsOn:
- Options
variables:
PR: $[ stageDependencies.Options.PRTitle.outputs['data.LIBRARY'] ]
jobs:
- job:
steps:
- template: templates/library/core/build.yml
parameters:
checkout: Library
store: true
- stage: Analytics
displayName: "Analytics"
dependsOn:
- Options
- LibraryCoreBuild
variables:
SCR_UPDATE: $[ stageDependencies.Options.Commit.outputs['data.SCR_UPDATE'] ]
jobs:
- job:
displayName: "Build"
condition: eq(variables['SCR_UPDATE'], '')
steps:
- template: templates/analytics/build.yml
parameters:
store: true
- template: templates/analytics/test.yml