This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
68 lines (52 loc) · 1.72 KB
/
azure-pipelines.yml
File metadata and controls
68 lines (52 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema
trigger:
- master
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job: linux_build
pool:
vmImage: "ubuntu-16.04"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js 10.x"
- bash: npm --version
displayName: "npm --version"
- bash: npx lerna boostrap
displayName: "npx lerna boostrap"
# - task: CacheBeta@0
# inputs:
# key: $(Build.SourcesDirectory)/package-lock.json
# path: $(npm_config_cache)
# displayName: Cache npm
- bash: npx lerna run build
displayName: "npx lerna run build"
- bash: npx lerna run test --ignore @conversationlearner/webchat
displayName: "npx lerna run test --ignore @conversationlearner/webchat"
- job: windows_build
pool:
vmImage: "windows-2019"
steps:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
debugMode: false
- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
displayName: "Post Analysis"
inputs:
CredScan: true
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js 10.x"
- script: npm ci
displayName: "npm ci"
- script: npx lerna run build
displayName: "npx lerna run build"
- script: npx lerna run test --ignore @conversationlearner/webchat
displayName: "npx lerna run test --ignore @conversationlearner/webchat"