From 0492989acb2abd1d311db8a1cb637eccc80ab84b Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Tue, 23 Oct 2018 13:11:43 +0100 Subject: [PATCH] use cake 0.30 --- azure-pipelines.yml | 24 ++++++++++++++++-------- build.cake | 1 - 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65e1a67123..0f0ab0201b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,11 +8,14 @@ jobs: script: | sudo apt-get update sudo apt-get install castxml + - task: CmdLine@2 + inputs: + dotnet tool install -g Cake.Tool --version 0.30.0 - script: | dotnet --info printenv - ./build.sh --target "Azure-Linux" --configuration "Release" + dotnet cake build.cake -target="Azure-Linux" -configuration="Release" - job: macOS pool: @@ -26,15 +29,18 @@ jobs: configuration: 'Release' xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace' xcodeVersion: 'default' # Options: 8, 9, default, specifyPath - args: '-derivedDataPath ./' + args: '-derivedDataPath ./' - task: CmdLine@2 inputs: script: brew install castxml + - task: CmdLine@2 + inputs: + dotnet tool install -g Cake.Tool --version 0.30.0 - script: | dotnet --info - printenv - ./build.sh --target "Azure-OSX" --configuration "Release" + printenv + dotnet cake build.cake -target="Azure-OSX" -configuration="Release" - task: PublishBuildArtifacts@1 inputs: @@ -49,10 +55,12 @@ jobs: pool: vmImage: 'vs2017-win2016' steps: - - task: PowerShell@2 - inputs: - filePath: build.ps1 - arguments: -target "Azure-Windows" -configuration "Release" + - task: CmdLine@2 + inputs: + dotnet tool install -g Cake.Tool --version 0.30.0 + - task: CmdLine@2 + inputs: + dotnet cake build.cake -target="Azure-Windows" -configuration="Release" - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.SourcesDirectory)/artifacts/nuget' diff --git a/build.cake b/build.cake index 49bf49e238..e5a4e3470d 100644 --- a/build.cake +++ b/build.cake @@ -20,7 +20,6 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using NuGet; /////////////////////////////////////////////////////////////////////////////// // SCRIPTS