Add a separate testing pipeline

This commit is contained in:
Dirk Baeumer 2019-08-23 14:54:17 +02:00
Родитель 9616d10eed
Коммит 2fc8a1ad8c
2 изменённых файлов: 44 добавлений и 21 удалений

Просмотреть файл

@ -26,24 +26,4 @@ steps:
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'util/junit.xml'
testRunTitle: 'Run unit tests'
- script: |
mkdir testSetup
cd testSetup
git clone https://github.com/microsoft/vscode-languageserver-node.git
cd vscode-languageserver-node
npm install
npm run symlink
cd jsonrpc
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=jsonrpc.lsif
cd ../types
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=types.lsif
cd ../protocol
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=protocol.lsif
cd ../server
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=server.lsif
cd ../client
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=client.lsif
cd ..
displayName: 'Testing VS Code LSP'
testRunTitle: 'Run unit tests'

Просмотреть файл

@ -0,0 +1,43 @@
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.15.1'
displayName: 'Use Node.js 10.15.1'
- script: |
npm ci
displayName: 'Install dependencies'
- script: |
npm run compile
displayName: 'Compile client'
- script: |
npm run test
displayName: 'Run unit tests'
- script: |
mkdir testSetup
cd testSetup
git clone https://github.com/microsoft/vscode-languageserver-node.git
cd vscode-languageserver-node
npm install
npm run symlink
cd jsonrpc
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=jsonrpc.lsif
cd ../types
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=types.lsif
cd ../protocol
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=protocol.lsif
cd ../server
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=server.lsif
cd ../client
node ../../../tsc/lib/main.js -p ./tsconfig.json --outputFormat=line --out=client.lsif
cd ..
displayName: 'Testing VS Code LSP'