diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e95595bdd1..e94608d17a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,13 +1,54 @@ -pool: - vmImage: 'Ubuntu 16.04' +jobs: +- job: Linux + pool: + vmImage: 'ubuntu-16.04' + steps: + - task: DotNetCoreInstaller@0 + inputs: + version: '2.1.403' + - script: | + export COREHOST_TRACE=0 + export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 + export DOTNET_CLI_TELEMETRY_OPTOUT=1 + which dotnet + dotnet --info + dotnet tool install -g Cake.Tool --version 0.30.0 + export PATH="$PATH:$HOME/.dotnet/tools" + dotnet cake build.cake -Configuration="Release" -Target="Azure-Linux" + +- job: macOS + pool: + vmImage: 'xcode9-macos10.13' + steps: + - task: DotNetCoreInstaller@0 + inputs: + version: '2.1.403' + - script: | + export COREHOST_TRACE=0 + export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 + export DOTNET_CLI_TELEMETRY_OPTOUT=1 + which dotnet + dotnet --info + dotnet tool install -g Cake.Tool --version 0.30.0 + export PATH="$PATH:$HOME/.dotnet/tools" + dotnet cake build.cake -Configuration="Release" -Target="Azure-OSX" -steps: -- task: cake-build.cake.cake-build-task.Cake@0 - displayName: 'Cake ' - inputs: - useBuildAgentNuGetExe: true - -- task: PublishBuildArtifacts@1 - displayName: 'Publish Artifact: drop' - inputs: - PathtoPublish: artifacts/ +- job: Windows + pool: + vmImage: 'vs2017-win2016' + steps: + - task: DotNetCoreInstaller@0 + inputs: + version: '2.1.403' + - script: | + set COREHOST_TRACE=0 + set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 + set DOTNET_CLI_TELEMETRY_OPTOUT=1 + where dotnet + dotnet --info + dotnet tool install -g Cake.Tool --version 0.30.0 + set PATH=%PATH%;%USERPROFILE%\.dotnet\tools + dotnet cake build.cake -Configuration="Release" -Target="Azure-Windows" + - task: PublishBuildArtifacts@1 + inputs: + pathToPublish: artifacts/ \ No newline at end of file diff --git a/build.cake b/build.cake index 56653109ae..74cd0057f1 100644 --- a/build.cake +++ b/build.cake @@ -377,6 +377,19 @@ Task("AppVeyor") Task("Travis") .IsDependentOn("Run-Tests"); +Task("Azure-Linux") + .IsDependentOn("Run-Tests"); + +Task("Azure-OSX") + .IsDependentOn("Run-Tests"); + +Task("Azure-Windows") + .IsDependentOn("Package") + .IsDependentOn("Copy-Files-Impl") + .IsDependentOn("Zip-Files-Impl") + .IsDependentOn("Publish-MyGet-Impl") + .IsDependentOn("Publish-NuGet-Impl"); + /////////////////////////////////////////////////////////////////////////////// // EXECUTE ///////////////////////////////////////////////////////////////////////////////