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
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn install
|
|
|
|
displayName: 'Install dependencies'
|
|
|
|
|
2019-10-03 08:00:41 -07:00
|
|
|
- script: |
|
|
|
|
test -d dist
|
|
|
|
displayName: 'Check dist directory'
|
|
|
|
|
2019-09-19 11:35:30 -07:00
|
|
|
- script: |
|
|
|
|
yarn pack --filename jellyfin-web.tgz
|
|
|
|
displayName: 'Build package'
|
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
displayName: 'Publish package'
|
|
|
|
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.js'
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn install
|
|
|
|
displayName: 'Install dependencies'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
yarn run lint
|
|
|
|
displayName: 'Run ESLint'
|