-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.yml
45 lines (43 loc) · 1.26 KB
/
ci.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
## Build Pipeline which is just the first part of the build-release
trigger:
- pr
pool:
vmImage: "ubuntu-latest"
stages:
- stage: Run_and_publish_unit_tests
jobs:
- job:
steps:
- task: NodeTool@0
displayName: Install Node10
inputs:
versionSpec: '10.x'
- task: TfxInstaller@3
displayName: Install Tfx - Task Builder Utilities
inputs:
version: "v0.7.x"
- task: Npm@1
displayName: Install task dependencies
inputs:
command: 'install'
workingDir: 'cosmosUploadTask'
verbose: true
- task: Bash@3
displayName: Compile Javascript
inputs:
targetType: "inline"
script: |
cd cosmosUploadTask
tsc
- task: Npm@1
displayName: Run Tests
inputs:
command: 'custom'
workingDir: 'cosmosUploadTask/tests'
customCommand: 'test'
verbose: true
- task: PublishTestResults@2
displayName: Test Results
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/ResultsFile.xml'