2019-02-18 22:47:31 +00:00
name : Build
resources :
repositories :
- repository : self
type : github
name : EraYaN/jellyfin
pool :
vmImage : ubuntu-16.04
variables :
- name : TestProjects
value : ''
- name : RestoreBuildProjects
value : 'Jellyfin.Server/Jellyfin.Server.csproj'
2019-02-18 21:36:24 +00:00
pr :
2019-02-18 22:42:24 +00:00
autoCancel : true
trigger :
batch : true
2019-02-18 21:36:24 +00:00
branches :
include :
- master
2019-02-18 21:26:40 +00:00
#Your build pipeline references the ‘ BuildConfiguration’ variable, which you’ ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
2019-02-18 22:24:39 +00:00
jobs :
2019-02-18 22:47:31 +00:00
- job : Build
steps :
- checkout : self
clean : false
submodules : true
persistCredentials : false
2019-02-18 22:42:24 +00:00
2019-02-18 22:47:31 +00:00
- task : DotNetCoreCLI@2
displayName : Restore
inputs :
command : restore
projects : '$(RestoreBuildProjects)'
2019-02-18 22:42:24 +00:00
2019-02-18 22:47:31 +00:00
- task : DotNetCoreCLI@2
displayName : Build
inputs :
projects : '$(RestoreBuildProjects)'
arguments : '--configuration $(BuildConfiguration)'
2019-02-18 22:42:24 +00:00
2019-02-18 22:47:31 +00:00
- task : DotNetCoreCLI@2
displayName : Test
inputs :
command : test
projects : '$(RestoreBuildProjects)'
arguments : '--configuration $(BuildConfiguration)'
enabled : false
2019-02-18 21:26:40 +00:00
2019-02-18 22:47:31 +00:00
- task : DotNetCoreCLI@2
displayName : Publish
inputs :
command : publish
publishWebProjects : false
projects : '$(RestoreBuildProjects)'
arguments : '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish : true
2019-02-18 21:26:40 +00:00
2019-02-18 22:47:31 +00:00
- task : PublishBuildArtifacts@1
displayName : 'Publish Artifact'
inputs :
PathtoPublish : '$(build.artifactstagingdirectory)'
artifactName : 'build-$(BuildConfiguration)'
zipAfterPublish : false