forked from Azure/azure-functions-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
79 lines (67 loc) · 1.66 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
name: 2.1.$(devops_buildNumber)
pr:
branches:
include:
- master
- dev
- v3.x
trigger:
branches:
include:
- dev
- master
pool:
vmImage: 'vs2017-win2016'
variables:
devops_buildNumber: $[counter(format(''), 1500)]
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- task: OneLocBuild@2
enabled: false
inputs:
locProj: 'Build\Localize\LocProject.json'
outDir: '$(Build.Repository.LocalPath)'
packageSourceAuth: 'patAuth'
patVariable: '$(ONELOCBUILD)'
continueOnError: true
- task: CopyFiles@2
enabled: false
displayName: 'Copy Loc files to publish directories'
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)/loc
TargetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
enabled: false
displayName: 'Publish Artifact: loc'
inputs:
ArtifactName: 'loc'
- task: Npm@1
inputs:
command: 'install'
workingDir: '.\Build'
- task: Gulp@1
inputs:
buildNumber: $(devops_buildNumber)
gulpFile: '.\Build\gulpfile.js'
targets: 'build-all'
enableCodeCoverage: false
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\bin\VS'
Contents: '*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\bin'
Contents: '*.zip'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'