Adding
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# This is the build for Repo Client - A React App.
|
||||
# All branches are built to test them, but only develop, release, and master are published.
|
||||
name: 'RepoClient.$(Build.SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r)'
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
pool:
|
||||
name: LCUOnPrem
|
||||
demands: npm
|
||||
|
||||
steps:
|
||||
- task: Npm@1
|
||||
displayName: 'npm install'
|
||||
inputs:
|
||||
arguments: '--before=2025-09-1'
|
||||
verbose: false
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'npm run test'
|
||||
inputs:
|
||||
command: custom
|
||||
verbose: false
|
||||
customCommand: 'run-script test-ci'
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'npm run build $(Build.BuildNumber).$(Build.SourceBranchName)'
|
||||
inputs:
|
||||
command: custom
|
||||
verbose: false
|
||||
customCommand: 'run build'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
condition: and (succeeded(), or( eq(variables['Build.SourceBranchName'], 'develop'), eq(variables['Build.SourceBranchName'], 'master')) )
|
||||
displayName: 'Publish Artifact: dist_$(Build.SourceBranchName)'
|
||||
inputs:
|
||||
PathtoPublish: build
|
||||
ArtifactName: 'dist'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish Test Results **\test-results.xml'
|
||||
inputs:
|
||||
testResultsFiles: '**\test-results.xml'
|
||||
Reference in New Issue
Block a user