Setup Azure pipeline
This commit is contained in:
Родитель
2b51bcdb8f
Коммит
b25fdc8803
|
@ -0,0 +1,24 @@
|
|||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
- job: Linux
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
steps:
|
||||
- template: build/azure-pipelines/linux/build.yml
|
||||
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: VS2017-Win2016
|
||||
steps:
|
||||
- template: build/azure-pipelines/win32/build.yml
|
||||
|
||||
- job: Indexing
|
||||
pool:
|
||||
vmImage: VS2017-Win2016
|
||||
steps:
|
||||
- template: build/azure-pipelines/index/build.yml
|
|
@ -0,0 +1,15 @@
|
|||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.16.0'
|
||||
displayName: 'Use Node.js 14.16.0'
|
||||
|
||||
- script: |
|
||||
npm ci
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- task: RichCodeNavIndexer@0
|
||||
displayName: VS Rich Code Navigation Upload
|
||||
inputs:
|
||||
languages: typescript
|
||||
continueOnError: true
|
|
@ -0,0 +1,23 @@
|
|||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.16.0'
|
||||
displayName: 'Use Node.js 14.16.0'
|
||||
|
||||
- script: |
|
||||
npm ci
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: |
|
||||
npm run compile
|
||||
displayName: 'Compile client'
|
||||
|
||||
- script: |
|
||||
npm run test
|
||||
displayName: 'Run unit tests'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'JUnit'
|
||||
testResultsFiles: 'util/junit.xml'
|
||||
testRunTitle: 'Run unit tests'
|
|
@ -0,0 +1,23 @@
|
|||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '14.16.0'
|
||||
displayName: 'Use Node.js 14.16.0'
|
||||
|
||||
- script: |
|
||||
npm ci
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script:
|
||||
npm run compile
|
||||
displayName: 'Compile client'
|
||||
|
||||
- script: |
|
||||
npm run test
|
||||
displayName: 'Run unit tests'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'JUnit'
|
||||
testResultsFiles: 'util/junit.xml'
|
||||
testRunTitle: 'Run unit tests'
|
|
@ -42,6 +42,9 @@ let rootDir = argv.rootDir ? path.resolve(argv.rootDir) : null;
|
|||
let keepFilenames = Boolean(argv.keepFilenames);
|
||||
|
||||
argv._.forEach(element => {
|
||||
if (typeof element === 'number') {
|
||||
return;
|
||||
}
|
||||
glob(element, (err, matches) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
|
|
Загрузка…
Ссылка в новой задаче