Defining linux job

This commit is contained in:
Elitsa Marinovska
2020-11-24 14:51:07 +01:00
parent ebf2a8cee9
commit f743cd7e4a

View File

@@ -9,32 +9,21 @@
trigger:
- master
# VM to run the build on & it's installed software
pool:
vmImage: 'ubuntu-latest'
# Variables & their default values
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 3.1.100'
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 3.1.100'
inputs:
version: 3.1.100
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
version: 3.1.100
- task: NuGetToolInstaller@1
displayName: 'Use NuGet Latest'
- task: NuGetCommand@2
displayName: 'Restore NuGet Packages'
inputs:
restoreSolution: '**/src/umbraco-netcore-only.sln'
feedsToUse: config
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/src/Umbraco.Web.UI.NetCore/*.csproj'
arguments: '--configuration $(buildConfiguration)'
command: test
projects: '**\Umbraco.Tests.UnitTests.csproj'