2019-09-19 11:35:30 -07:00
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- release-*
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: main_build
|
|
|
|
displayName: 'Main Build'
|
|
|
|
|
|
|
|
dependsOn: lint
|
|
|
|
condition: succeeded()
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
2020-01-11 08:06:25 -07:00
|
|
|
displayName: 'Install Node'
|
2019-09-19 11:35:30 -07:00
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
2020-01-11 08:06:25 -07:00
|
|
|
- script: 'yarn install'
|
|
|
|
displayName: 'Install Dependencies'
|
2019-09-19 11:35:30 -07:00
|
|
|
|
2020-01-11 08:06:25 -07:00
|
|
|
- script: 'test -d dist'
|
|
|
|
displayName: 'Check Build'
|
2019-10-03 08:00:41 -07:00
|
|
|
|
2020-01-11 08:06:25 -07:00
|
|
|
- script: 'yarn pack --filename jellyfin-web.tgz'
|
|
|
|
displayName: 'Bundle Release'
|
2019-09-19 11:35:30 -07:00
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
2020-01-11 08:06:25 -07:00
|
|
|
displayName: 'Publish Release'
|
2019-09-19 11:35:30 -07:00
|
|
|
condition: succeeded()
|
|
|
|
inputs:
|
|
|
|
targetPath: '$(Build.SourcesDirectory)/jellyfin-web.tgz'
|
|
|
|
artifactName: 'jellyfin-web'
|
|
|
|
|
|
|
|
- job: lint
|
|
|
|
displayName: 'Lint'
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
2020-01-11 08:06:25 -07:00
|
|
|
displayName: 'Install Node'
|
2019-09-19 11:35:30 -07:00
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
2020-01-11 08:06:25 -07:00
|
|
|
- script: 'yarn install'
|
|
|
|
displayName: 'Install Dependencies'
|
2019-09-19 11:35:30 -07:00
|
|
|
|
2020-01-11 08:06:25 -07:00
|
|
|
- script: 'yarn run lint'
|
2019-09-19 11:35:30 -07:00
|
|
|
displayName: 'Run ESLint'
|
2020-01-19 08:05:35 -07:00
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn run stylelint
|
|
|
|
displayName: 'Run stylelint'
|