-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsts-ci.yml
54 lines (53 loc) · 1.34 KB
/
.vsts-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
46
47
48
49
50
51
52
53
54
phases:
- phase: Windows
queue: Hosted VS2017
steps:
- task: NodeTool@0
inputs:
versionSpec: "8.9.1"
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs:
versionSpec: "1.7.0"
- powershell: |
yarn
displayName: Install Dependencies
- powershell: |
yarn lint:js
displayName: Run Linting
- powershell: |
yarn test
displayName: Run Tests
- task: PublishTestResults@2
displayName: Publish Tests Results
inputs:
testResultsFiles: 'results.xml'
searchFolder: '$(Build.StagingDirectory)/test-results'
condition: succeededOrFailed()
- phase: Linux
queue: Hosted Linux Preview
steps:
- script: |
set -e
apt-get update
apt-get install -y chromium-browser
- task: NodeTool@0
inputs:
versionSpec: "8.9.1"
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs:
versionSpec: "1.7.0"
- script: |
yarn
displayName: Install Dependencies
- script: |
yarn lint:js
displayName: Run Linting
- script: |
yarn test
displayName: Run Tests
- task: PublishTestResults@2
displayName: Publish Tests Results
inputs:
testResultsFiles: 'results.xml'
searchFolder: '$(Build.StagingDirectory)/test-results'
condition: succeededOrFailed()