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

36 lines
811 B
YAML
Raw Normal View History

2020-08-22 02:42:48 +00:00
trigger:
batch: true
branches:
include:
- '*'
tags:
include:
- '*'
2020-10-04 00:03:28 +00:00
jobs:
- job: 'Validate'
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Python27:
python.version: '2.7'
Python36:
python.version: '3.6'
steps:
# Run tests and linting
- template: validate.yml
2020-08-22 02:42:48 +00:00
2020-10-04 00:03:28 +00:00
- job: Build
steps:
# On every PR, build the addon and make it available for download as an artifact
- template: build.yml
parameters:
py_versions: [ 'py2', 'py3' ]
# When triggered by a tag, publish the built addon to the repo server
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags') }}:
- template: publish.yml
parameters:
py_versions: [ 'py2', 'py3' ]