forked from vuejs/vetur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
60 lines (50 loc) · 1.1 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
# 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.13'
# windows:
# imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- bash: yarn install
displayName: Install Dependencies
- bash: cd server && yarn install && cd ..
displayName: Install Server Dependencies
- bash: yarn compile
displayName: Compile
- bash: |
if [ $AGENT_OS == "Linux" ]; then
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
echo "Started xvfb"
fi
displayName: Start xvfb
- bash: yarn test:server
displayName: Run Server Tests
continueOnError: true
env:
DISPLAY: :10
- bash: yarn test:e2e
displayName: Run E2E Tests
env:
DISPLAY: :10