зеркало из https://github.com/microsoft/lsif-node.git
Add a separate testing pipeline
This commit is contained in:
Родитель
9616d10eed
Коммит
2fc8a1ad8c
|
@ -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'
|
Загрузка…
Ссылка в новой задаче