mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- master
|
|
- release-*
|
|
tags:
|
|
include:
|
|
- '*'
|
|
pr:
|
|
branches:
|
|
include:
|
|
- '*'
|
|
|
|
jobs:
|
|
- job: main_build
|
|
displayName: 'Main Build'
|
|
|
|
dependsOn: lint
|
|
condition: succeeded()
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
displayName: 'Install Node'
|
|
inputs:
|
|
versionSpec: '10.x'
|
|
|
|
- script: 'yarn install'
|
|
displayName: 'Install Dependencies'
|
|
|
|
- script: 'yarn build'
|
|
displayName: 'Build'
|
|
|
|
- script: 'test -d dist'
|
|
displayName: 'Check Build'
|
|
|
|
- script: 'yarn pack --filename jellyfin-web.tgz'
|
|
displayName: 'Bundle Release'
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: 'Publish Release'
|
|
condition: succeeded()
|
|
inputs:
|
|
targetPath: '$(Build.SourcesDirectory)/jellyfin-web.tgz'
|
|
artifactName: 'jellyfin-web'
|
|
|
|
- job: lint
|
|
displayName: 'Lint'
|
|
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
displayName: 'Install Node'
|
|
inputs:
|
|
versionSpec: '10.x'
|
|
|
|
- script: 'yarn install'
|
|
displayName: 'Install Dependencies'
|
|
|
|
- script: 'yarn run lint'
|
|
displayName: 'Run ESLint'
|
|
|
|
- script: |
|
|
yarn run stylelint
|
|
displayName: 'Run stylelint'
|