Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
larionovadaria committed Apr 25, 2022
1 parent 07449af commit ce7c2ec
Show file tree
Hide file tree
Showing 893 changed files with 99,707 additions and 38,687 deletions.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"commands": [
"sitecore"
]
},
"cake.tool": {
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
}
}
}
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ branches:
regex: feature?[/]
mode: ContinuousDeployment
increment: Inherit
tag: 'dev'
tag: 'alpha'
is-release-branch: false
prevent-increment-of-merged-branch-version: true

Expand Down
39 changes: 31 additions & 8 deletions automation/azure-pipelines-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
trigger: none

pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-latest'

variables:
build_cake: './src/build.cake'
Expand All @@ -13,8 +13,8 @@ steps:

- task: UseNode@1
inputs:
script: '"C:\Program Files\nodejs\npm.cmd" --version'
displayName: Installing Node 10
version: '16.x'
displayName: Installing Node 16

- task: PowerShell@2
inputs:
Expand All @@ -23,35 +23,58 @@ steps:
(Get-Content $(build_cake)) -replace "MSBuildToolVersion.VS201\d{1,3}", '$(agent_buildTools)' | Set-Content $(build_cake)
displayName: Config preparation

- task: DotNetCoreCLI@2
displayName: Add sitecore nuget source
inputs:
command: 'custom'
custom: 'nuget'
arguments: 'add source -n Sitecore https://sitecore.myget.org/F/sc-packages/api/v3/index.json'
workingDirectory: '$(Pipeline.Workspace)/s'

- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'
inputs:
nuGetServiceConnections: 'Connect.DynamicsRetail Nuget connection'

- task: PowerShell@2
- task: DotNetCoreCLI@2
displayName: Restore .Net Core tools
inputs:
command: 'custom'
custom: 'tool'
arguments: 'restore'
workingDirectory: './'

- task: Cake@2
displayName: "Restore"
inputs:
filePath: './src/build.ps1'
arguments: '-Target 001-Restore'
workingDirectory: './src/'
displayName: Restore
script: './src/build.cake'
target: '001-Restore'
verbosity: 'Quiet'
Version: '1.3.0'

- task: PublishPipelineArtifact@1
displayName: "Publish Tools"
inputs:
targetPath: '$(Pipeline.Workspace)/s/src/tools'
artifact: 'tools'
publishLocation: 'pipeline'

- task: PublishPipelineArtifact@1
displayName: "Publish Packages"
inputs:
targetPath: '$(Pipeline.Workspace)/s/src/packages'
artifact: 'packages'
publishLocation: 'pipeline'

- task: PublishPipelineArtifact@1
displayName: "Publish Common Node Modules"
inputs:
targetPath: '$(Pipeline.Workspace)/s/src/node_modules'
artifact: 'node_modules'
publishLocation: 'pipeline'

- task: PublishPipelineArtifact@1
displayName: "Publish Client Node Modules"
inputs:
targetPath: '$(Pipeline.Workspace)/s/src/client/node_modules'
artifact: 'client_node_modules'
Expand Down
2 changes: 2 additions & 0 deletions automation/azure-pipelines-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ steps:
displayName: 'NuGet restore'
inputs:
restoreSolution: '$(Pipeline.Workspace)/s/src/HCA.sln'
feedsToUse: 'config'
nugetConfigPath: '$(Pipeline.Workspace)/s/src/nuget.config'

- task: MSBuild@1
displayName: MSBuild
Expand Down
96 changes: 47 additions & 49 deletions automation/backend-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@
trigger: none

pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-latest'

variables:
build_cake: './src/build.cake'
build_cake: "./src/build.cake"
artifacts_location: "$(Pipeline.Workspace)/s/output"

steps:

- task: UseNode@1
displayName: Install Node 10
displayName: Install Node 16
inputs:
script: 'npm --version'
version: '16.x'

- task: DownloadPipelineArtifact@2
displayName: Download tools
inputs:
buildType: 'specific'
project: 'c8a112df-eb95-41fa-bb80-48e83128fe75'
definition: '10'
buildVersionToDownload: 'latest'
artifactName: 'tools'
targetPath: '$(Pipeline.Workspace)/s/src/tools'

- task: DownloadPipelineArtifact@2
displayName: Download node modules
Expand Down Expand Up @@ -53,69 +63,57 @@ steps:
artifactName: 'packages'
targetPath: '$(Pipeline.Workspace)/s/src/packages'

- task: DownloadPipelineArtifact@2
displayName: Download tools
inputs:
buildType: 'specific'
project: 'c8a112df-eb95-41fa-bb80-48e83128fe75'
definition: '10'
buildVersionToDownload: 'latest'
artifactName: 'tools'
targetPath: '$(Pipeline.Workspace)/s/src/tools'

- task: PowerShell@2
displayName: Move license_file
inputs:
targetType: 'inline'
script: |
move $(license_file.secureFilePath) ./src/ -Force
- task: NuGetCommand@2
displayName: 'NuGet restore'
- task: DotNetCoreCLI@2
displayName: Add sitecore nuget source
inputs:
restoreSolution: '$(Pipeline.Workspace)/s/src/HCA.sln'
feedsToUse: 'config'
nugetConfigPath: '$(Pipeline.Workspace)/s/src/nuget.config'
command: 'custom'
custom: 'nuget'
arguments: 'add source -n Sitecore https://sitecore.myget.org/F/sc-packages/api/v3/index.json'
workingDirectory: '$(Pipeline.Workspace)/s'

- task: MSBuild@1
displayName: MSBuild
- task: NuGetAuthenticate@0
inputs:
solution: './src/HCA.sln'
msbuildVersion: '15.0'
configuration: 'Debug'
msbuildArguments: '/t:Rebuild'
nuGetServiceConnections: 'Connect.DynamicsRetail Nuget connection'

- task: PowerShell@2
displayName: Run Unit tests
- task: DotNetCoreCLI@2
displayName: Restore .Net Core tools
inputs:
filePath: './src/build.ps1'
arguments: '-Target 003-Tests'
workingDirectory: './src/'
command: 'custom'
custom: 'tool'
arguments: 'restore'
workingDirectory: './'

- task: MSBuild@1
displayName: MSBuild Foundation
- task: Cake@2
displayName: "NuGet restore"
inputs:
solution: './src/Foundation/**/*.csproj'
msbuildVersion: '15.0'
configuration: 'Debug'
msbuildArguments: '/t:Build /p:Verbosity=Minimal /p:DeployOnBuild=True'
script: 'src/build.cake'
target: 'Restore :: Restore NuGet Packages'
verbosity: 'Quiet'
Version: '1.3.0'

- task: MSBuild@1
displayName: MSBuild Feature
- task: Cake@2
displayName: Build Server Code
inputs:
solution: './src/Feature/**/*.csproj'
msbuildVersion: '15.0'
configuration: 'Debug'
msbuildArguments: '/t:Build /p:Verbosity=Minimal /p:DeployOnBuild=True'
script: 'src/build.cake'
target: '008-Build-Server-Code'
verbosity: 'Quiet'
Version: '1.3.0'

- task: MSBuild@1
displayName: MSBuild Project
- task: Cake@2
displayName: Run Unit tests
inputs:
solution: './src/Project/**/*.csproj'
msbuildVersion: '15.0'
configuration: 'Debug'
msbuildArguments: '/t:Build /p:Verbosity=Minimal /p:DeployOnBuild=True'
script: 'src/build.cake'
target: '003-Tests'
verbosity: 'Quiet'
Version: '1.3.0'


- task: PublishCodeCoverageResults@1
displayName: Publish code coverage
Expand Down
12 changes: 9 additions & 3 deletions automation/frontend-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
trigger: none

pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-latest'

variables:
build_cake: './src/build.cake'

steps:

- task: UseNode@1
displayName: Install Node 10
displayName: Install Node 16
inputs:
script: 'npm --version'
version: '16.x'


- task: DownloadSecureFile@1
Expand Down Expand Up @@ -90,6 +90,12 @@ steps:
$(Pipeline.Workspace)/s/src/client/node_modules/.bin/cross-env.cmd NODE_ENV=production $(Pipeline.Workspace)/s/src/client/node_modules/.bin/webpack.cmd
workingDirectory: './src/client'

- task: PowerShell@2
displayName: Run client tests
inputs:
targetType: 'inline'
script: 'npm run test'
workingDirectory: './src/client'

- task: PublishCodeCoverageResults@1
displayName: Publish code coverage
Expand Down
Loading

0 comments on commit ce7c2ec

Please sign in to comment.