jellyfin-web/.ci/azure-pipelines.yml

85 lines
1.7 KiB
YAML
Raw Normal View History

trigger:
batch: true
branches:
include:
- master
- release-*
tags:
include:
- '*'
2020-03-15 13:53:28 -07:00
pr:
branches:
include:
- '*'
jobs:
2020-03-16 07:30:14 -07:00
- job: build
displayName: 'Build'
dependsOn: lint
condition: succeeded()
pool:
vmImage: 'ubuntu-latest'
2020-03-16 07:30:14 -07:00
strategy:
matrix:
2020-03-16 07:49:56 -07:00
Development:
BuildConfiguration: development
Bundle:
BuildConfiguration: bundle
Standalone:
BuildConfiguration: standalone
2020-03-16 07:30:14 -07:00
maxParallel: 2
steps:
- task: NodeTool@0
displayName: 'Install Node'
inputs:
versionSpec: '10.x'
- script: 'yarn install'
displayName: 'Install Dependencies'
2020-02-28 07:15:22 -07:00
- script: 'yarn build'
2020-03-16 07:49:56 -07:00
displayName: 'Build Bundle'
condition: eq(variables['BuildConfiguration'], 'bundle')
- script: 'yarn build --standalone'
displayName: 'Build Standalone'
condition: eq(variables['BuildConfiguration'], 'standalone')
2020-02-28 07:15:22 -07:00
- script: 'test -d dist'
displayName: 'Check Build'
2020-03-16 07:49:56 -07:00
- script: 'mv dist jellyfin-web'
displayName: 'Rename Directory'
- task: PublishPipelineArtifact@1
displayName: 'Publish Release'
condition: succeeded()
inputs:
2020-03-16 07:49:56 -07:00
targetPath: '$(Build.SourcesDirectory)/jellyfin-web'
artifactName: 'jellyfin-web-$(BuildConfiguration)'
- 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'
2020-01-19 08:05:35 -07:00
2020-03-16 07:30:14 -07:00
- script: 'yarn run stylelint'
displayName: 'Run Stylelint'