forked from nhsuk/cookie-consent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (41 loc) · 947 Bytes
/
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
trigger:
- master
- azure-pipelines
jobs:
- job: Test
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: npm install
displayName: npm install
- script: npm run lint
displayName: linting
- script: npm run test
displayName: tests
- job: 'Build'
dependsOn: 'Test'
pool:
vmImage: 'Ubuntu-16.04'
variables:
log_to_splunk: true
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: npm install
displayName: npm install
- script: npm run build:production
displayName: 'build'
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.SourcesDirectory)/dist
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: dist