forked from microsoftgraph/microsoft-graph-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
47 lines (38 loc) · 1.23 KB
/
azure-pipelines.yml
File metadata and controls
47 lines (38 loc) · 1.23 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
pool:
vmImage: 'vs2017-win2016'
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
npm install
displayName: 'npm install'
- script: |
npm run lint
displayName: 'Runs linting checks'
- script: |
npm run import:samples
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
displayName: 'Imports samples'
- script: |
npm test
displayName: 'Runs tests'
- script: |
npm run import:loc-strings
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
displayName: 'Imports loc-strings'
- script: |
npm run build:prod
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
displayName: 'Runs a production build'
- task: AzureFileCopy@2
inputs:
sourcePath: 'dist'
azureConnectionType: 'ConnectedServiceNameARM'
azureSubscription: 'arm-connection'
destination: 'azureBlob'
storage: 'graphstagingblobstorage'
containerName: 'staging/vendor/bower_components/explorer/dist'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
displayName: 'Stage'