trigger:
batch: true
branches:
include:
- master
- next
- version-*
stages:
- stage: generate
jobs:
- job: generate_api
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: CmdLine@2
script: make gen-web
- task: PublishPipelineArtifact@1
targetPath: 'web/api/'
artifact: 'ts_api_client'
publishLocation: 'pipeline'
- stage: lint
- job: eslint
- task: DownloadPipelineArtifact@2
buildType: 'current'
artifactName: 'ts_api_client'
path: "web/api/"
- task: Npm@1
command: 'install'
workingDir: 'web/'
command: 'custom'
customCommand: 'run lint'
- job: lit_analyse
customCommand: 'run lit-analyse'
- stage: build_local
- job: build
customCommand: 'run build'