Defining linux job
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user