Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cicd): adding yml build yml #3581

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions azure-devops/app-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
trigger:
branches:
include:
- master
- vnext

# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation. Ensure that this pipeline is reserved for deployment purposes.
pr: none

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

pool:
vmImage: ubuntu-latest

variables:
githubToken: <value> # Add a GitHub token in Libraries
ReplacementText: '@infragistics/igniteui-angular-extras'

steps:
- checkout: self
clean: true
fetchTags: true

- task: NodeTool@0
displayName: Use Node 20.x
inputs:
versionSpec: 20.x

- task: PowerShell@2
displayName: 'Replace with licensed angular-extras'
inputs:
targetType: 'inline'
script: |
# List of files to update
$files = @(
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.module.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts",
"projects/app-lob/src/app/app.module.ts",
"package.json")
foreach ($file in $files) {
(Get-Content -Path $file) -replace 'igniteui-angular-extras', '$(ReplacementText)' | Set-Content -Path $file
}

- task: CmdLine@2
displayName: 'Create empty .npmrc file in the project root dir'
inputs:
script: 'touch $(Build.SourcesDirectory)/.npmrc'
failOnStderr: true

- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
customEndpoint: 'public proget'

- task: npmAuthenticate@0
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
customEndpoint: 'public proget'

- task: Npm@1
displayName: npm install
inputs:
command: install
workingDir: $(Build.SourcesDirectory)
verbose: false
customEndpoint: 'public proget'
env:
AZURE_PIPELINES: true

- task: CmdLine@2
displayName: Clone submodule
inputs:
script: git clone --recurse-submodules https://github.com/IgniteUI/igniteui-live-editing-samples igniteui-live-editing-samples
workingDirectory: $(Build.SourcesDirectory)

- template: templates/cd-template.yml
parameters:
customCommand: run generate-live-editing
workingDir: $(Build.SourcesDirectory)
submoduleDir: angular-demos
baseHref: \/angular-demos\/
targetFolder: dist/app
findRegex: angular-demos
npmBuildCommand: 'run build-ci'
repositoryfy: true
89 changes: 89 additions & 0 deletions azure-devops/app-crm-cd-yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
trigger:
branches:
include:
- master
- vnext

# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation. Ensure that this pipeline is reserved for deployment purposes.
pr: none

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

pool:
vmImage: ubuntu-latest

variables:
githubToken: <value> # Add a GitHub token in Libraries
ReplacementText: '@infragistics/igniteui-angular-extras'

steps:
- checkout: self
clean: true
fetchTags: true

- task: NodeTool@0
displayName: Use Node 20.x
inputs:
versionSpec: 20.x

- task: PowerShell@2
displayName: 'Replace with licensed angular-extras'
inputs:
targetType: 'inline'
script: |
# List of files to update
$files = @(
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.module.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts",
"projects/app-lob/src/app/app.module.ts",
"package.json")
foreach ($file in $files) {
(Get-Content -Path $file) -replace 'igniteui-angular-extras', '$(ReplacementText)' | Set-Content -Path $file
}

- task: CmdLine@2
displayName: 'Create empty .npmrc file in the project root dir'
inputs:
script: 'touch $(Build.SourcesDirectory)/.npmrc'
failOnStderr: true

- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
customEndpoint: 'public proget'

- task: npmAuthenticate@0
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
customEndpoint: 'public proget'

- task: Npm@1
displayName: npm install
inputs:
command: install
workingDir: $(Build.SourcesDirectory)
verbose: false
customEndpoint: 'public proget'
env:
AZURE_PIPELINES: true

- task: CmdLine@2
displayName: Clone submodule
inputs:
script: git clone --recurse-submodules https://github.com/IgniteUI/igniteui-live-editing-samples igniteui-live-editing-samples
workingDirectory: $(Build.SourcesDirectory)

- template: templates/cd-template.yml
parameters:
customCommand: run generate-live-editing:app-crm
workingDir: $(Build.SourcesDirectory)
submoduleDir: angular-demos-crm
baseHref: \/angular-demos-grid-crm\/
targetFolder: dist/app-crm
findRegex: angular-demos
npmBuildCommand: 'run build-ci:app-crm --loglevel verbose'
repositoryfy: false
89 changes: 89 additions & 0 deletions azure-devops/app-lob-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
trigger:
branches:
include:
- master
- vnext

# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation. Ensure that this pipeline is reserved for deployment purposes.
pr: none

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

pool:
vmImage: ubuntu-latest

variables:
githubToken: <value> # Add a GitHub token in Libraries
ReplacementText: '@infragistics/igniteui-angular-extras'

steps:
- checkout: self
clean: true
fetchTags: true

- task: NodeTool@0
displayName: Use Node 20.x
inputs:
versionSpec: 20.x

- task: PowerShell@2
displayName: 'Replace with licensed angular-extras'
inputs:
targetType: 'inline'
script: |
# List of files to update
$files = @(
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.module.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.ts",
"projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.ts",
"projects/app-lob/src/app/app.module.ts",
"package.json")
foreach ($file in $files) {
(Get-Content -Path $file) -replace 'igniteui-angular-extras', '$(ReplacementText)' | Set-Content -Path $file
}

- task: CmdLine@2
displayName: 'Create empty .npmrc file in the project root dir'
inputs:
script: 'touch $(Build.SourcesDirectory)/.npmrc'
failOnStderr: true

- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
customEndpoint: 'public proget'

- task: npmAuthenticate@0
inputs:
workingFile: '$(Build.SourcesDirectory)/.npmrc'
customEndpoint: 'public proget'

- task: Npm@1
displayName: npm install
inputs:
command: install
workingDir: $(Build.SourcesDirectory)
verbose: false
customEndpoint: 'public proget'
env:
AZURE_PIPELINES: true

- task: CmdLine@2
displayName: Clone submodule
inputs:
script: git clone --recurse-submodules https://github.com/IgniteUI/igniteui-live-editing-samples igniteui-live-editing-samples
workingDirectory: $(Build.SourcesDirectory)

- template: templates/cd-template.yml
parameters:
customCommand: run generate-live-editing:app-lob
workingDir: $(Build.SourcesDirectory)
submoduleDir: angular-demos-lob
baseHref: \/angular-demos-lob\/
targetFolder: dist/app-lob
findRegex: angular-demos
npmBuildCommand: 'run build-ci:app-lob'
repositoryfy: true
Loading
Loading