2c60ec50be
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
120 lines
3.2 KiB
YAML
120 lines
3.2 KiB
YAML
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
|
|
inputs:
|
|
script: make gen-web
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: 'web/api/'
|
|
artifact: 'ts_api_client'
|
|
publishLocation: 'pipeline'
|
|
- stage: lint
|
|
jobs:
|
|
- job: eslint
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '16.x'
|
|
displayName: 'Install Node.js'
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'current'
|
|
artifactName: 'ts_api_client'
|
|
path: "web/api/"
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'install'
|
|
workingDir: 'web/'
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'custom'
|
|
workingDir: 'web/'
|
|
customCommand: 'run lint'
|
|
- job: prettier
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '16.x'
|
|
displayName: 'Install Node.js'
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'current'
|
|
artifactName: 'ts_api_client'
|
|
path: "web/api/"
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'install'
|
|
workingDir: 'web/'
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'custom'
|
|
workingDir: 'web/'
|
|
customCommand: 'run prettier-check'
|
|
- job: lit_analyse
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '16.x'
|
|
displayName: 'Install Node.js'
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'current'
|
|
artifactName: 'ts_api_client'
|
|
path: "web/api/"
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'install'
|
|
workingDir: 'web/'
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'custom'
|
|
workingDir: 'web/'
|
|
customCommand: 'run lit-analyse'
|
|
- stage: build_local
|
|
jobs:
|
|
- job: build
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: '16.x'
|
|
displayName: 'Install Node.js'
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'current'
|
|
artifactName: 'ts_api_client'
|
|
path: "web/api/"
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'install'
|
|
workingDir: 'web/'
|
|
- task: Npm@1
|
|
inputs:
|
|
command: 'custom'
|
|
workingDir: 'web/'
|
|
customCommand: 'run build'
|