forked from vuejs/vetur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
94 lines (78 loc) · 1.93 KB
/
azure-pipelines.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
branches:
include:
- '*'
exclude:
- gh-pages
pr:
- master
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.14'
windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
steps:
- script: |
git config --global core.autocrlf false
git config --global core.eol lf
displayName: Configure LF for Windows
- checkout: self
- task: NodeTool@0
inputs:
versionSpec: '8.x'
checkLatest: true
displayName: 'Install Node.js'
# Don't use latest yarn 1.19 — Azure DevOps run into https://github.com/yarnpkg/yarn/issues/7584
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
displayName: 'Use Yarn 1.17.3'
inputs:
versionSpec: 1.17.3
- bash: yarn install
displayName: Install Dependencies
- bash: cd server && yarn install && cd ..
displayName: Install Server Dependencies
- bash: cd vti && yarn install && cd ..
displayName: Install VTI Dependencies
- bash: yarn compile
displayName: Compile
- bash: |
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
echo "Started xvfb"
condition: eq(variables['Agent.OS'], 'Linux')
displayName: Start xvfb
- bash: yarn test:server
displayName: Run Server Tests
condition: always()
env:
DISPLAY: :10
- bash: yarn test:grammar
displayName: Run grammar E2E Tests
condition: always()
env:
DISPLAY: :10
- bash: yarn test:lsp
displayName: Run LSP E2E Tests
condition: always()
env:
DISPLAY: :10
- bash: yarn test:vue3
displayName: Run vue3 E2E Tests
condition: always()
env:
DISPLAY: :10
- bash: yarn test:int
displayName: Run template interpolation E2E Tests
condition: always()
env:
DISPLAY: :10