tests
This commit is contained in:
parent
db3c928a43
commit
2aa1f346c4
43
azure-pipelines.yml
Normal file
43
azure-pipelines.yml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
trigger:
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
include:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
linux:
|
||||||
|
imageName: 'ubuntu-latest'
|
||||||
|
mac:
|
||||||
|
imageName: 'macos-latest'
|
||||||
|
windows:
|
||||||
|
imageName: 'windows-latest'
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: $(imageName)
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '10.x'
|
||||||
|
displayName: 'Install Node.js'
|
||||||
|
|
||||||
|
- bash: |
|
||||||
|
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||||
|
echo ">>> Started xvfb"
|
||||||
|
displayName: Start xvfb
|
||||||
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
||||||
|
|
||||||
|
- bash: |
|
||||||
|
echo ">>> Compile vscode-test"
|
||||||
|
yarn && yarn compile
|
||||||
|
echo ">>> Compiled vscode-test"
|
||||||
|
cd sample
|
||||||
|
echo ">>> Run sample integration test"
|
||||||
|
yarn && yarn compile && yarn test
|
||||||
|
displayName: Run Tests
|
||||||
|
env:
|
||||||
|
DISPLAY: ':99.0'
|
Loading…
Reference in New Issue
Block a user