Skip to content

Commit

Permalink
restructured by __folder for old functions and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
falkheiland committed Sep 26, 2024
1 parent 1014e83 commit a990e9f
Show file tree
Hide file tree
Showing 60 changed files with 56 additions and 51 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 17 additions & 25 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BuiltModuleSubdirectory: module
CopyPaths:
- en-US
# - DSCResources
# - Modules
# - Modules
Encoding: UTF8
# Can be used to manually specify module's semantic version if the preferred method of
# using GitVersion is not available, and it is not possible to set the session environment
Expand All @@ -31,7 +31,7 @@ NestedModule:
# OutputDirectory: ///Modules/HelperSubmodule
# VersionedOutputDirectory: false
# AddToManifest: false
# SemVer:
# SemVer:
# # suffix:
# # prefix:

Expand All @@ -40,7 +40,7 @@ NestedModule:
####################################################
# Defining 'Workflows' (suite of InvokeBuild tasks) to be run using their alias
BuildWorkflow:
'.': # "." is the default Invoke-Build workflow. It is called when no -Tasks is specified to the build.ps1
".": # "." is the default Invoke-Build workflow. It is called when no -Tasks is specified to the build.ps1
- build
- test

Expand All @@ -50,13 +50,10 @@ BuildWorkflow:
- Build_NestedModules_ModuleBuilder
- Create_changelog_release_output


pack:
- build
- package_module_nupkg



# Defining test task to be run when invoking `./build.ps1 -Tasks test`
test:
# Uncomment to modify the PSModulePath in the test pipeline (also requires the build configuration section SetPSModulePath).
Expand All @@ -70,10 +67,9 @@ BuildWorkflow:
# Use this task when you have multiple parallel tests, which produce multiple
# code coverage files and needs to get merged into one file.
#merge:
#- Merge_CodeCoverage_Files
#- Merge_CodeCoverage_Files

publish:

- Publish_Release_To_GitHub # Runs first, if token is expired it will fail early
- publish_module_to_gallery

Expand All @@ -91,16 +87,20 @@ Pester:
# only run tests in certain folders, or run specific test files, or can be use to
# specify the order tests are run.
Script:
# - tests/QA/module.tests.ps1
# - tests/QA
# - tests/Unit
# - tests/Integration
# - tests/QA/module.tests.ps1
# - tests/QA
# - tests/Unit
- tests/Unit
# - tests/Unit/Get*
# - tests/Integration
ExcludeTag:
- CL_Update
# - Module_M
# - helpQuality
# - FunctionalQuality
# - TestQuality
Tag:
CodeCoverageThreshold: 85 # Set to 0 to bypass
#CodeCoverageThreshold: 85 # Set to 0 to bypass
#CodeCoverageOutputFile: JaCoCo_$OsShortName.xml
#CodeCoverageOutputFileEncoding: ascii
# Use this if code coverage should be merged from several pipeline test jobs.
Expand All @@ -114,20 +114,18 @@ Pester:
# CodeCoverageMergedOutputFile - the file that is created by the merge build task and
# is the file that should be uploaded to code coverage services.
#CodeCoverage:
#CodeCoverageFilePattern: JaCoCo_Merge.xml # the pattern used to search all pipeline test job artifacts
#CodeCoverageMergedOutputFile: JaCoCo_coverage.xml # the file that is created for the merged code coverage

#CodeCoverageFilePattern: JaCoCo_Merge.xml # the pattern used to search all pipeline test job artifacts
#CodeCoverageMergedOutputFile: JaCoCo_coverage.xml # the file that is created for the merged code coverage

# Import ModuleBuilder tasks from a specific PowerShell module using the build
# task's alias. Wildcard * can be used to specify all tasks that has a similar
# prefix and or suffix. The module contain the task must be added as a required
# module in the file RequiredModules.psd1.
ModuleBuildTasks:
Sampler:
- '*.build.Sampler.ib.tasks'
- "*.build.Sampler.ib.tasks"
Sampler.GitHubTasks:
- '*.ib.tasks'

- "*.ib.tasks"

# Invoke-Build Header to be used to 'decorate' the terminal output of the tasks.
TaskHeader: |
Expand All @@ -140,9 +138,3 @@ TaskHeader: |
Write-Build DarkGray " $Path"
Write-Build DarkGray " $($Task.InvocationInfo.ScriptName):$($Task.InvocationInfo.ScriptLineNumber)"
""
13 changes: 13 additions & 0 deletions docs/guides/99-Sampler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sampler

## known issues

### GitVersion 6.0.0 is not supported due to breaking changes

<https://github.com/gaelcolas/Sampler/issues/477>

5.12.0 release is the latest 5.x release that works with Sampler version v0.118.1

- <https://github.com/GitTools/GitVersion/releases/tag/5.12.0>

in case gitversion from chocolatey is used, replace the gitversion in C:\ProgramData\chocolatey\bin with the 5.12. release
52 changes: 26 additions & 26 deletions source/PSIGEL.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# ProcessorArchitecture = ''

# Die Module, die vor dem Importieren dieses Moduls in die globale Umgebung geladen werden muessen
RequiredModules = @()
RequiredModules = @()

# Die Assemblys, die vor dem Importieren dieses Moduls geladen werden muessen
# RequiredAssemblies = @()
Expand Down Expand Up @@ -81,30 +81,30 @@
'Get-UMSProfileDirectory'
'Get-UMSProfileAssignment'
'Get-UMSStatus'
'Move-UMSDevice'
'Move-UMSDeviceDirectory'
'Move-UMSProfile'
'Move-UMSProfileDirectory'
'New-UMSAPICookie'
'New-UMSDevice'
'New-UMSDeviceDirectory'
'New-UMSProfileAssignment'
'New-UMSProfileDirectory'
'Remove-UMSAPICookie'
'Remove-UMSDevice'
'Remove-UMSDeviceDirectory'
'Remove-UMSProfile'
'Remove-UMSProfileAssignment'
'Remove-UMSProfileDirectory'
'Reset-UMSDevice'
'Restart-UMSDevice'
'Send-UMSDeviceSetting'
'Start-UMSDevice'
'Stop-UMSDevice'
'Update-UMSDevice'
'Update-UMSDeviceDirectory'
'Update-UMSProfile'
'Update-UMSProfileDirectory'
# 'Move-UMSDevice'
# 'Move-UMSDeviceDirectory'
# 'Move-UMSProfile'
# 'Move-UMSProfileDirectory'
# 'New-UMSAPICookie'
# 'New-UMSDevice'
# 'New-UMSDeviceDirectory'
# 'New-UMSProfileAssignment'
# 'New-UMSProfileDirectory'
# 'Remove-UMSAPICookie'
# 'Remove-UMSDevice'
# 'Remove-UMSDeviceDirectory'
# 'Remove-UMSProfile'
# 'Remove-UMSProfileAssignment'
# 'Remove-UMSProfileDirectory'
# 'Reset-UMSDevice'
# 'Restart-UMSDevice'
# 'Send-UMSDeviceSetting'
# 'Start-UMSDevice'
# 'Stop-UMSDevice'
# 'Update-UMSDevice'
# 'Update-UMSDeviceDirectory'
# 'Update-UMSProfile'
# 'Update-UMSProfileDirectory'
)

# Aus diesem Modul zu exportierende Cmdlets. Um optimale Leistung zu erzielen, verwenden Sie keine Platzhalter und loeschen den Eintrag nicht.
Expand Down Expand Up @@ -133,7 +133,7 @@

PSData = @{

Prerelease = ''
Prerelease = ''
# 'Tags' wurde auf das Modul angewendet und unterstuetzt die Modulermittlung in Onlinekatalogen.
Tags = @('IGEL', 'UMS', 'IMI')

Expand Down

0 comments on commit a990e9f

Please sign in to comment.