mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00

* Set up CI with Azure Pipelines [skip ci] * Update azure-pipelines.yml for Azure Pipelines * Update .npmignore * Add linting to Azure Pipelines * Move linting to separate job * Move Azure config to .ci * Publish pipeline artifact * Fix yaml * Only run build if lint succeeds * Remove version variable * Update npmignore * Exclude version from package filename * Update CI triggers
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
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'
|
|
|
|
- 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'
|