linq2db.LINQPad/Build/azure-pipelines.yml

110 строки
3.7 KiB
YAML
Исходник Обычный вид История

work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
variables:
solution: 'linq2db.LINQPad.sln'
build_configuration: 'Release'
2021-11-21 19:32:06 +03:00
assemblyVersion: 3.6.0.0
nugetVersion: 3.6.0
nugetDevVersion: 3.6.1
nugetPRVersion: 3.6.1
work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
artifact_lpx: 'lpx'
artifact_lpx6: 'lpx6'
artifact_nuget: 'nuget'
# trigger for commits to master/release
trigger:
- master
2021-04-24 18:26:36 +03:00
- release
work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
# trigger for PRs to master/release
pr:
- master
- release
stages:
- stage: ''
displayName: ''
jobs:
- job: build_job
pool:
2021-11-21 19:32:06 +03:00
vmImage: 'windows-2022'
work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
displayName: 'Build'
variables:
- template: nuget-vars.yml
steps:
- task: NuGetToolInstaller@1
- task: PowerShell@2
inputs:
filePath: '$(Build.SourcesDirectory)/Build/SetVersion.ps1'
workingDirectory: '$(Build.SourcesDirectory)'
arguments: -path $(Build.SourcesDirectory)/Source/linq2db.LINQPad.csproj -version $(assemblyVersion)
displayName: Update Assembly Version
- task: MSBuild@1
inputs:
solution: '$(solution)'
configuration: '$(build_configuration)'
msbuildArguments: '/t:Restore;Rebuild -m'
displayName: Build Solution
- task: PublishPipelineArtifact@1
inputs:
path: '$(Build.SourcesDirectory)/Source/linq2db.LINQPad.lpx'
artifact: '$(artifact_lpx)'
displayName: Publish .LPX to Artifacts
- task: PublishPipelineArtifact@1
inputs:
path: '$(Build.SourcesDirectory)/Source/linq2db.LINQPad.lpx6'
artifact: '$(artifact_lpx6)'
displayName: Publish .LPX6 to Artifacts
############################
# Build and Publish nuget #
############################
- powershell: echo "##vso[task.setvariable variable=packageVersion]$(packageVersion)-rc.$(Build.BuildId)"
condition: eq(variables['Build.SourceBranchName'], 'master')
displayName: Update nuget version
- task: PowerShell@2
inputs:
filePath: '$(Build.SourcesDirectory)/Build/BuildNuspecs.ps1'
workingDirectory: '$(Build.SourcesDirectory)'
arguments: -path $(Build.SourcesDirectory)/Build/linq2db.LINQPad.nuspec -version $(packageVersion) -branch $(Build.SourceBranchName)
condition: or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
displayName: Update .nuspec
- task: NuGetCommand@2
inputs:
command: 'custom'
arguments: 'pack "$(Build.SourcesDirectory)/Build/linq2db.LINQPad.nuspec" -OutputDirectory "$(Build.SourcesDirectory)/Build/built"'
condition: or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
displayName: Generate linq2db.LINQPad.nupkg
- task: PublishPipelineArtifact@1
inputs:
path: '$(Build.SourcesDirectory)/Build/built/'
artifact: '$(artifact_nuget)'
condition: or (eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'release'))
displayName: Publish nuget to Artifacts
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/Build/built/*.nupkg'
work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
nuGetFeedType: 'internal'
publishVstsFeed: '0dcc414b-ea54-451e-a54f-d63f05367c4b/967a4107-9788-41a4-9f6d-a2318aab1410'
displayName: Publish to Azure Artifacts feed
condition: eq(variables['Build.SourceBranchName'], 'master')
# apikey exires Oct/2020
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/Build/built/*.nupkg'
work on linqpad6 support (#32) * work on linqpad6 support * fix appveyor * remove unneeded dll's * fix assembly loading in linqpad, missing minor * switch to linq2db version 3 * work on linq2db 3.0 support * C# 8 NRT migration, enable access oledb/odbc + firebird drivers (more coming soon) * remove debug code * enable mysql, migrate to mysqlconnector, workaround inconsistencies in default schema name for procedures and tables * add npgsql, fix linqpad6 support * sybase ASE support * oracle support * SQL CE support * DB2 LUW support * sap hana support * informix support * sqlite support * sql server support with spatial types * Fix issues, found during access odbc provider testing: - remove empty tables from tree (e.g. protected access tables) - escape xml-unfriendly characters in strings and char values - fix access ODBC procedure call * - fix references for v6 - fix <i> styles for v6 - improve \uxxxx formatting * - fix custom formatters - fix DB2 types support * - Firebird, Informix, mysql/mariadb testing - nullability workaround for provider-specific value types * - sqlce fixes - postgresql types support * sql server fixes * fix oracle, remove native provider as it currently broken and not really needed * - add provider path configuration for sqlce/saphana for linqpad6 - moved context element names to constants - fixed conditional T4 generation for NotifyPropertyChanged (need to be ported to linq2db) - fixed ui in connection dialog - changed copyrights to "Linq To DB" * forgot to add files to previous commit... * update readme * - add release notes - pipelines and nuget files (untested yet) * fix value formatter * address code review * add note about sql server 2000 support * generate nuget on all branches * cleanup/build fixes * fix nuget pack command * fix artifact publishing * mkay, file mask not supported * fix nuspec * fix connection images location * disable nuget generation on non-master/release branches * remove var Co-authored-by: MaceWindu <MaceWindu@users.noreply.github.com>
2020-07-28 11:15:59 +03:00
nuGetFeedType: 'external'
publishFeedCredentials: 'linq2db nuget.org feed'
displayName: Publish to Nuget.org
condition: eq(variables['Build.SourceBranchName'], 'release')