Browse Source

use cake 0.30

pull/1992/head
Dan Walmsley 8 years ago
parent
commit
0492989acb
  1. 24
      azure-pipelines.yml
  2. 1
      build.cake

24
azure-pipelines.yml

@ -8,11 +8,14 @@ jobs:
script: | script: |
sudo apt-get update sudo apt-get update
sudo apt-get install castxml sudo apt-get install castxml
- task: CmdLine@2
inputs:
dotnet tool install -g Cake.Tool --version 0.30.0
- script: | - script: |
dotnet --info dotnet --info
printenv printenv
./build.sh --target "Azure-Linux" --configuration "Release" dotnet cake build.cake -target="Azure-Linux" -configuration="Release"
- job: macOS - job: macOS
pool: pool:
@ -26,15 +29,18 @@ jobs:
configuration: 'Release' configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace' xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, default, specifyPath xcodeVersion: 'default' # Options: 8, 9, default, specifyPath
args: '-derivedDataPath ./' args: '-derivedDataPath ./'
- task: CmdLine@2 - task: CmdLine@2
inputs: inputs:
script: brew install castxml script: brew install castxml
- task: CmdLine@2
inputs:
dotnet tool install -g Cake.Tool --version 0.30.0
- script: | - script: |
dotnet --info dotnet --info
printenv printenv
./build.sh --target "Azure-OSX" --configuration "Release" dotnet cake build.cake -target="Azure-OSX" -configuration="Release"
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
@ -49,10 +55,12 @@ jobs:
pool: pool:
vmImage: 'vs2017-win2016' vmImage: 'vs2017-win2016'
steps: steps:
- task: PowerShell@2 - task: CmdLine@2
inputs: inputs:
filePath: build.ps1 dotnet tool install -g Cake.Tool --version 0.30.0
arguments: -target "Azure-Windows" -configuration "Release" - task: CmdLine@2
inputs:
dotnet cake build.cake -target="Azure-Windows" -configuration="Release"
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
pathtoPublish: '$(Build.SourcesDirectory)/artifacts/nuget' pathtoPublish: '$(Build.SourcesDirectory)/artifacts/nuget'

1
build.cake

@ -20,7 +20,6 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NuGet;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// SCRIPTS // SCRIPTS

Loading…
Cancel
Save