Files
sqltoolsservice/azure-pipelines/release.yml
Justin M 1577177153 3278 Kusto Unit Tests - Part 1 (#1057)
* 3278 Added unit tests in MetadataFactoryTests and Microsoft.Kusto.ServiceLayer.UnitTests project

* 3278 Removed todo and changed unit test to validate megabytes

* 3278 Added file and unit tests in AutoCompleteHelperTests.cs

* 3278 Removed unused functions from Kusto > ScriptAsScriptingOperation

* 3278 Added unit tests for DataSourceFactory

* 3278 Refactored AdminService to pass in ConnectionService rather than through instance variable. Added unit test for AdminServiceTests

* 3278 Refactored DataSourceFactory to not have static functions for future unit tests

* 3278 Re-added properties that were flagged as unused but are being used by ADS in ReliableDataSourceConnection.cs

* 3278 Re-added properties that were flagged as unused but are being used by ADS in ReliableDataSourceConnection.cs

* adding pipeline to execute tests (#1062)

* 3278 Converted GetDefaultAutoComplete and GetDefaultSemanticMarkers to static functions in DataSourceFactory. Removed unused constructor in ScriptFile. Added positive unit tests for both functions

* undoing release version bump

* adding additional configs

* adressing feedback

* Correcting path in csproj

Co-authored-by: Jorge Berumen <52225468+joberume@users.noreply.github.com>
Co-authored-by: joberume <jberumen3@miners.utep.edu>
2020-08-31 11:11:12 -07:00

67 lines
2.5 KiB
YAML

stages:
- stage: Release
jobs:
- job: Release
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: AzureKeyVault@1
displayName: 'Azure Key Vault: ado-secrets'
inputs:
azureSubscription: 'ClientToolsInfra_670062 (88d5392f-a34f-4769-b405-f597fc533613)'
KeyVaultName: 'ado-secrets'
SecretsFilter: 'github-distro-mixin-password,ado-crossplatbuildscripts-password'
- powershell: |
git clone https://$(ado-crossplatbuildscripts-password)@dev.azure.com/mssqltools/_git/CrossPlatBuildScripts
displayName: Clone CrossPlatBuildScripts
- task: DownloadPipelineArtifact@2
displayName: 'Download pipeline source artifacts'
inputs:
buildType: 'specific'
project: 'ae14e11c-7eb2-46af-b588-471e6116d635'
definition: '309'
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
artifactName: 'source'
itemPattern: '**/source.tar.gz'
targetPath: '$(Agent.TempDirectory)/source'
- task: DownloadPipelineArtifact@2
displayName: 'Download pipeline drop artifacts'
inputs:
buildType: 'specific'
project: 'ae14e11c-7eb2-46af-b588-471e6116d635'
definition: '309'
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
artifactName: 'drop'
itemPattern: '**/*'
targetPath: '$(Agent.TempDirectory)/drop'
- task: ExtractFiles@1
displayName: 'Extract files '
inputs:
archiveFilePatterns: '$(Agent.TempDirectory)/source/source.tar.gz'
destinationFolder: '$(System.DefaultWorkingDirectory)/sqltoolsservice'
- task: CopyFiles@2
displayName: 'Copy Files to: $(System.DefaultWorkingDirectory)/sqltoolsservice/artifacts/package'
inputs:
SourceFolder: '$(Agent.TempDirectory)/drop'
TargetFolder: '$(System.DefaultWorkingDirectory)/sqltoolsservice/artifacts/package'
- task: PowerShell@2
displayName: 'PowerShell Script'
inputs:
filePath: '$(System.DefaultWorkingDirectory)/CrossPlatBuildScripts/AutomatedReleases/sqltoolsserviceRelease.ps1'
arguments: '-workspace $(System.DefaultWorkingDirectory)/sqltoolsservice -minTag v3.0.0.0 -target main -tagFormat release'
workingDirectory: '$(System.DefaultWorkingDirectory)/sqltoolsservice'
env:
GITHUB_DISTRO_MIXIN_PASSWORD: $(github-distro-mixin-password)
trigger: none
pr: none
schedules:
- cron: "0 7 * * Mon-Fri"
displayName: Mon-Fri at 7:00UTC
branches:
include:
- main