From 6a8550eab814d466324c89e5a8f67d23b6d97396 Mon Sep 17 00:00:00 2001 From: Cameron J Osborn Date: Mon, 22 Jul 2019 11:32:48 -0700 Subject: [PATCH 1/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..711a046 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,23 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +variables: + UtilitiesVersion: 1.0.15 + IntelliWaitVersion: 1.2.1 + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From 9d165525053007d0761de32deb05d5ddb370efd9 Mon Sep 17 00:00:00 2001 From: Cameron Osborn Date: Mon, 22 Jul 2019 15:05:01 -0700 Subject: [PATCH 2/3] Create Azure build and release pipeline --- azure-pipelines.yml | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 711a046..373ceac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,17 +7,43 @@ trigger: - master variables: - UtilitiesVersion: 1.0.15 - IntelliWaitVersion: 1.2.1 + IntelliTect.Utilities.Version: 1.0.15 + IntelliTect.IntelliWait.Version: 1.2.1 pool: vmImage: 'ubuntu-latest' steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' - -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' +- task: DotNetCoreCLI@2 + inputs: + command: 'restore' + projects: '**/*.sln' + feedsToUse: 'select' +- task: DotNetCoreCLI@2 + inputs: + command: 'build' + projects: '**/*.sln' +- task: DotNetCoreCLI@2 + inputs: + command: 'test' + projects: '**/*.Tests.csproj' +- task: PowerShell@2 + inputs: + targetType: 'inline' + script: | + Get-ChildItem "IntelliTect.*" -Directory -Recurse -Exclude "*.Tests" | ForEach-Object { + Push-Location $_ + Write-Output "Directory changed to - $pwd" + $currentDirectoryFileName = Split-Path -Path $pwd -Leaf -Resolve + $qualifiedVersion = "$currentDirectoryFileName.Version".ToUpper().Replace(".", "_") + $parsedVersion = (get-item env:$qualifiedVersion).Value + Write-Output "Found version $qualifiedVersion - $parsedVersion" + dotnet pack -p:Version=$parsedVersion-ci$(Build.BuildId) -o $(Build.ArtifactStagingDirectory) + } + Pop-Location + pwsh: true +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' \ No newline at end of file From 81aa12fc84452958e0466f1dd8ecb926d0f62085 Mon Sep 17 00:00:00 2001 From: Cameron J Osborn Date: Tue, 23 Jul 2019 09:37:43 -0700 Subject: [PATCH 3/3] Update azure-pipelines.yml Co-Authored-By: Kevin B --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 373ceac..5c178f8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,5 +45,5 @@ steps: - task: PublishBuildArtifacts@1 inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)' - ArtifactName: 'drop' - publishLocation: 'Container' \ No newline at end of file + ArtifactName: 'NuGets' + publishLocation: 'Container'