-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgraph-ql-server.v2.yml
More file actions
33 lines (29 loc) · 918 Bytes
/
graph-ql-server.v2.yml
File metadata and controls
33 lines (29 loc) · 918 Bytes
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
# run the same job on 2 CI machines in parallel
# https://docs.microsoft.com/en-us/vsts/pipelines/process/phases
phases:
- phase: Test
queue: 'Hosted macOS'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- bash: |
cd server
npm install
displayName: 'NPM Install'
- script: |
cd server
npm run build
zip -r payload.zip .
displayName: 'zip server'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: server
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: dest'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/payload.zip'
ArtifactName: payload