fix liniting errors

pull/4070/head
crobibero 4 years ago
parent 3d20ff69d4
commit 86e06369a9

@ -9,6 +9,7 @@
jobs: jobs:
- job: GenerateApiClients - job: GenerateApiClients
displayName: 'Generate Api Clients' displayName: 'Generate Api Clients'
dependsOn: Test
pool: pool:
vmImage: "${{ parameters.LinuxImage }}" vmImage: "${{ parameters.LinuxImage }}"
@ -21,42 +22,41 @@ jobs:
artifact: "OpenAPI Spec" artifact: "OpenAPI Spec"
path: "$(System.ArtifactsDirectory)/openapispec" path: "$(System.ArtifactsDirectory)/openapispec"
runVersion: "latest" runVersion: "latest"
dependsOn: Test
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Download OpenApi Generator' displayName: 'Download OpenApi Generator'
inputs: inputs:
scripts: "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/${{ parameters.GeneratorVersion }}/openapi-generator-cli-${{ parameters.GeneratorVersion }}.jar -O openapi-generator-cli.jar" script: "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/${{ parameters.GeneratorVersion }}/openapi-generator-cli-${{ parameters.GeneratorVersion }}.jar -O openapi-generator-cli.jar"
# Generate npm api client # Generate npm api client
# Unstable # Unstable
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Build unstable typescript axios client' displayName: 'Build unstable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
inputs: inputs:
script: 'bash ./apiclient/templates/typescript/axios/unstable.sh' script: 'bash ./apiclient/templates/typescript/axios/unstable.sh'
- task: Npm@1 - task: Npm@1
displayName: 'Publish unstable typescript axios client' displayName: 'Publish unstable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
inputs: inputs:
command: publish command: publish
publishRegistry: useFeed publishRegistry: useFeed
publishFeed: unstable publishFeed: unstable
workingDir: ./apiclient/generated/typescript/axios workingDir: ./apiclient/generated/typescript/axios
# Stable # Stable
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Build stable typescript axios client' displayName: 'Build stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v') condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs: inputs:
script: 'bash ./apiclient/templates/typescript/axios/stable.sh' script: 'bash ./apiclient/templates/typescript/axios/stable.sh'
- task: Npm@1 - task: Npm@1
displayName: 'Publish stable typescript axios client' displayName: 'Publish stable typescript axios client'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v') condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
inputs: inputs:
command: publish command: publish
publishRegistry: useExternalRegistry publishRegistry: useExternalRegistry
publishEndpoint: 'jellyfin-bot for NPM' publishEndpoint: 'jellyfin-bot for NPM'
workingDir: ./apiclient/generated/typescript/axios workingDir: ./apiclient/generated/typescript/axios

@ -57,4 +57,4 @@ jobs:
- template: azure-pipelines-package.yml - template: azure-pipelines-package.yml
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}: - ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-api-client.yml - template: azure-pipelines-api-client.yml

Loading…
Cancel
Save