-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
73 lines (62 loc) · 1.53 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: build
displayName: 'Build / Deploy'
jobs:
- job: runBuild
displayName: 'Run Build'
steps:
- script: 'echo building...'
- stage: deploy
displayName: 'Deploy'
dependsOn: build
jobs:
- job: runDeploymnet
displayName: 'Run Deployment'
steps:
- script: 'echo deploying...'
- stage: test
displayName: 'Test'
dependsOn: deploy
jobs:
- job: runLighthouse
displayName: 'Run Lighthouse'
variables:
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: '$(Build.SourceBranch)'
steps:
- checkout: 'self'
fetchDepth: 1
- task: Npm@1
inputs:
command: 'install'
- task: Npm@1
displayName: 'Healthcheck'
inputs:
command: 'custom'
customCommand: 'run lighthouse:healthcheck'
- task: Npm@1
displayName: 'Collect'
inputs:
command: 'custom'
customCommand: 'run lighthouse:collect'
- task: Npm@1
displayName: 'Assert'
inputs:
command: 'custom'
customCommand: 'run lighthouse:assert'
- task: Npm@1
displayName: 'Upload'
inputs:
command: 'custom'
customCommand: 'run lighthouse:upload'
- stage: release
displayName: 'Release'
dependsOn: test
jobs:
- job: runRelease
displayName: 'Run Release'
steps:
- script: 'echo releasing...'