Skip to content

Commit

Permalink
Merge pull request #1730 from qdraw/feature/202409_pipeline
Browse files Browse the repository at this point in the history
change skip arguments
  • Loading branch information
qdraw authored Sep 24, 2024
2 parents d8901f2 + 153adcc commit b04c425
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/webapp-build-net-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
- name: "BuildNetCore (MacOS)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --skip --no-logo
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --no-logo

- name: "TestNetCore (MacOS)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target TestNetCore --skip --no-logo --no-publish
run: bash build.sh --Target TestNetCore --no-logo --no-publish
6 changes: 3 additions & 3 deletions .github/workflows/webapp-build-net-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
- name: "BuildNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --skip --no-logo
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --no-logo

- name: "TestNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target TestNetCore --skip --no-logo --no-publish
run: bash build.sh --Target TestNetCore --no-logo --no-publish

- name: "Set locale to: nl_NL.UTF-8"
run: |
Expand All @@ -71,7 +71,7 @@ jobs:
working-directory: ./starsky
run: |
export LANG="nl_NL.UTF-8"
bash build.sh --Target TestNetCore --skip --no-dependencies --no-publish --no-logo
bash build.sh --Target TestNetCore --no-dependencies --no-publish --no-logo
trigger_pipe_release_desktop:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/webapp-build-net-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
- name: Build (Windows)
shell: pwsh
working-directory: ./starsky
run: pwsh build.ps1 --Target BuildNetCore --no-sonar --no-dependencies --no-publish --skip --no-logo
run: pwsh build.ps1 --Target BuildNetCore --no-sonar --no-dependencies --no-publish --no-logo

- name: Test (Windows)
shell: pwsh
working-directory: ./starsky
run: pwsh build.ps1 --Target TestNetCore --no-sonar --no-dependencies --no-publish --skip --no-logo
run: pwsh build.ps1 --Target TestNetCore --no-sonar --no-dependencies --no-publish --no-logo
4 changes: 2 additions & 2 deletions pipelines/azure/steps/build_clientapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --target Client --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target Client --no-logo'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"

Expand All @@ -43,6 +43,6 @@ steps:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --no-unit-tests --target Client --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --no-unit-tests --target Client --no-logo'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"
8 changes: 4 additions & 4 deletions pipelines/azure/steps/build_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
SONAR_TOKEN: $(STARSKY_SONAR_TOKEN)
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --target SonarBuildTest --branch "$(Build.SourceBranch)" --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target SonarBuildTest --branch "$(Build.SourceBranch)" --no-logo'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"

Expand All @@ -36,7 +36,7 @@ steps:
BUILD_SOURCEBRANCH: $(Build.SourceBranch)
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --no-unit-tests --target SonarBuildTest --branch "$(Build.SourceBranch)" --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target SonarBuildTest --skip Client --no-unit-tests --branch "$(Build.SourceBranch)" --no-logo'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"

Expand All @@ -45,7 +45,7 @@ steps:
condition: and(succeeded(), eq('${{ parameters.readyToRunEnabled }}', true) )
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --target BuildNetCoreRuntimeSpecific --skip --no-logo --ready-to-run'
arguments: '${{ parameters.runtimeArg }} --target BuildNetCoreRuntimeSpecific --skip Client SonarBuildTest --no-logo --ready-to-run'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"

Expand All @@ -54,7 +54,7 @@ steps:
condition: and(succeeded(), ne('${{ parameters.readyToRunEnabled }}', true) )
inputs:
filePath: "starsky/build.ps1"
arguments: '${{ parameters.runtimeArg }} --target BuildNetCoreRuntimeSpecific --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target BuildNetCoreRuntimeSpecific --skip Client SonarBuildTest --no-logo'
pwsh: true
workingDirectory: "$(Build.SourcesDirectory)/starsky/"

Expand Down
2 changes: 1 addition & 1 deletion pipelines/azure/steps/build_zip_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ steps:
displayName: 'Nuke Zip'
inputs:
filePath: 'starsky/build.ps1'
arguments: '${{ parameters.runtimeArg }} --target Zip --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target Zip --skip Client SonarBuildTest BuildNetCoreRuntimeSpecific --no-logo'
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/starsky/'
4 changes: 2 additions & 2 deletions pipelines/azure/steps/coverage_report_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ steps:
condition: and(succeeded(), eq('${{ parameters.unitTest }}', true) )
inputs:
filePath: 'starsky/build.ps1'
arguments: '${{ parameters.runtimeArg }} --target CoverageReport --skip --no-logo'
arguments: '${{ parameters.runtimeArg }} --target CoverageReport --skip Client SonarBuildTest --no-logo'
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/starsky/'

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
condition: and(succeeded(), eq('${{ parameters.unitTest }}', true) )
displayName: 'Publish code coverage from $(Build.SourcesDirectory)/starsky/starskytest/coverage-merge-cobertura.xml'
inputs:
Expand Down
2 changes: 1 addition & 1 deletion starsky/build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public sealed class Build : NukeBuild
/// - Microsoft VSCode https://nuke.build/vscode
public static int Main() => Execute<Build>(x => x.Compile);

// Use `--target BuildNetCoreRuntimeSpecific --skip` parameter to run only this task
// Use `--target BuildNetCoreRuntimeSpecific --skip TASK` parameter to run only this task

[Parameter(
"Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
Expand Down
2 changes: 1 addition & 1 deletion starsky/build/helpers/DotnetRuntimeSpecificHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace helpers;

/// <summary>
/// use --skip to run only this test
/// use --skip TARGET/TASK to run only this test
/// </summary>
[SuppressMessage("Sonar",
"S2629: Don't use string interpolation in logging message templates",
Expand Down

0 comments on commit b04c425

Please sign in to comment.