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

remove indentation from ci file

This commit is contained in:
dkanada 2020-04-13 01:02:19 +09:00
parent aeaf93cc2f
commit 09ffe358ea

View file

@ -12,94 +12,94 @@ pr:
- '*' - '*'
jobs: jobs:
- job: Build - job: Build
displayName: 'Build' displayName: 'Build'
strategy: strategy:
matrix: matrix:
Development: Development:
BuildConfiguration: development BuildConfiguration: development
Production: Production:
BuildConfiguration: production BuildConfiguration: production
Standalone: Standalone:
BuildConfiguration: standalone BuildConfiguration: standalone
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
steps: steps:
- task: NodeTool@0 - task: NodeTool@0
displayName: 'Install Node' displayName: 'Install Node'
inputs: inputs:
versionSpec: '12.x' versionSpec: '12.x'
- task: Cache@2 - task: Cache@2
displayName: 'Check Cache' displayName: 'Check Cache'
inputs: inputs:
key: 'yarn | yarn.lock' key: 'yarn | yarn.lock'
path: 'node_modules' path: 'node_modules'
cacheHitVar: CACHE_RESTORED cacheHitVar: CACHE_RESTORED
- script: 'yarn install --frozen-lockfile' - script: 'yarn install --frozen-lockfile'
displayName: 'Install Dependencies' displayName: 'Install Dependencies'
condition: ne(variables.CACHE_RESTORED, 'true') condition: ne(variables.CACHE_RESTORED, 'true')
- script: 'yarn build:development' - script: 'yarn build:development'
displayName: 'Build Development' displayName: 'Build Development'
condition: eq(variables['BuildConfiguration'], 'development') condition: eq(variables['BuildConfiguration'], 'development')
- script: 'yarn build:production' - script: 'yarn build:production'
displayName: 'Build Bundle' displayName: 'Build Bundle'
condition: eq(variables['BuildConfiguration'], 'production') condition: eq(variables['BuildConfiguration'], 'production')
- script: 'yarn build:standalone' - script: 'yarn build:standalone'
displayName: 'Build Standalone' displayName: 'Build Standalone'
condition: eq(variables['BuildConfiguration'], 'standalone') condition: eq(variables['BuildConfiguration'], 'standalone')
- script: 'test -d dist' - script: 'test -d dist'
displayName: 'Check Build' displayName: 'Check Build'
- script: 'mv dist jellyfin-web' - script: 'mv dist jellyfin-web'
displayName: 'Rename Directory' displayName: 'Rename Directory'
- task: ArchiveFiles@2 - task: ArchiveFiles@2
displayName: 'Archive Directory' displayName: 'Archive Directory'
inputs: inputs:
rootFolderOrFile: 'jellyfin-web' rootFolderOrFile: 'jellyfin-web'
includeRootFolder: true includeRootFolder: true
archiveFile: 'jellyfin-web-$(BuildConfiguration)' archiveFile: 'jellyfin-web-$(BuildConfiguration)'
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
displayName: 'Publish Release' displayName: 'Publish Release'
inputs: inputs:
targetPath: '$(Build.SourcesDirectory)/jellyfin-web-$(BuildConfiguration).zip' targetPath: '$(Build.SourcesDirectory)/jellyfin-web-$(BuildConfiguration).zip'
artifactName: 'jellyfin-web-$(BuildConfiguration)' artifactName: 'jellyfin-web-$(BuildConfiguration)'
- job: Lint - job: Lint
displayName: 'Lint' displayName: 'Lint'
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
steps: steps:
- task: NodeTool@0 - task: NodeTool@0
displayName: 'Install Node' displayName: 'Install Node'
inputs: inputs:
versionSpec: '12.x' versionSpec: '12.x'
- task: Cache@2 - task: Cache@2
displayName: 'Check Cache' displayName: 'Check Cache'
inputs: inputs:
key: 'yarn | yarn.lock' key: 'yarn | yarn.lock'
path: 'node_modules' path: 'node_modules'
cacheHitVar: CACHE_RESTORED cacheHitVar: CACHE_RESTORED
- script: 'yarn install --frozen-lockfile' - script: 'yarn install --frozen-lockfile'
displayName: 'Install Dependencies' displayName: 'Install Dependencies'
condition: ne(variables.CACHE_RESTORED, 'true') condition: ne(variables.CACHE_RESTORED, 'true')
- script: 'yarn run lint --quiet' - script: 'yarn run lint --quiet'
displayName: 'Run ESLint' displayName: 'Run ESLint'
- script: 'yarn run stylelint' - script: 'yarn run stylelint'
displayName: 'Run Stylelint' displayName: 'Run Stylelint'