update meta files (#4)
#### 📖 Summary - Updates Readme file to match recent template layout - Updates module manifest: links asset files. #### 📑 Test Plan > 💡 Select your test plan for the code changes. - [x] Tested via Drone.io pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: #4
This commit is contained in:
parent
1f86741b9c
commit
175e77055f
79
README.md
79
README.md
@ -1,24 +1,50 @@
|
|||||||
# DroneHelper
|
<p align="right">
|
||||||
|
<img src="http://forthebadge.com/images/badges/built-with-love.svg">
|
||||||
|
<img src="http://forthebadge.com/images/badges/for-you.svg">
|
||||||
|
</p>
|
||||||
|
|
||||||
[![Build Status](https://drone.ocram85.com/api/badges/OCram85/DroneHelper/status.svg)](https://drone.ocram85.com/OCram85/DroneHelper)
|
<p align="center">
|
||||||
|
<a href="https://gitea.ocram85.com/OCram85/DroneHelper/">
|
||||||
|
<img src="https://gitea.ocram85.com/OCram85/DroneHelper/raw/branch/master/assets/social-logo.png" alt="DroneHelper" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
## Description
|
<h1 align="center">
|
||||||
|
DroneHelper
|
||||||
|
</h1>
|
||||||
|
|
||||||
Helper module for Drone.io based build pipelines.
|
<p align="center">
|
||||||
|
:hammer_and_wrench: Helper module for Drone.io based build pipelines.
|
||||||
|
</p>
|
||||||
|
|
||||||
## About
|
<p align="center">
|
||||||
|
<a href="https://drone.ocram85.com/OCram85/DroneHelper">
|
||||||
|
<img src="https://drone.ocram85.com/api/badges/OCram85/DroneHelper/status.svg" alt="Master Branch Build Status">
|
||||||
|
</a>
|
||||||
|
<a href="https://www.powershellgallery.com/packages/DroneHelper">
|
||||||
|
<img src="https://img.shields.io/powershellgallery/v/DroneHelper.svg?style=plastic" alt="PowershellGallery Published Version">
|
||||||
|
</a>
|
||||||
|
<a href="https://www.powershellgallery.com/packages/DroneHelper">
|
||||||
|
<img src="https://img.shields.io/powershellgallery/vpre/DroneHelper.svg?label=latest%20preview&style=plastic" />
|
||||||
|
</a>
|
||||||
|
<a href="https://www.powershellgallery.com/packages/DroneHelper">
|
||||||
|
<img src="https://img.shields.io/powershellgallery/dt/DroneHelper.svg?style=plastic" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
The DroneHelper PowerShell Modules adds several feature to a `Gitea -> Drone.IO` based build pipeline. It's designed
|
## :key: General
|
||||||
|
|
||||||
|
The DroneHelper PowerShell module adds several features for `Gitea -> Drone.IO` based build pipelines. It's designed
|
||||||
to perform all needed tasks for PowerShell Module development like:
|
to perform all needed tasks for PowerShell Module development like:
|
||||||
|
|
||||||
- `FileLinter` -> Runs basic FileLinter tests with console and log file output
|
- `FileLinter` -> Runs basic FileLinter tests with console and log file output
|
||||||
- `Linter` -> Runs PSScriptAnalyer with embedded to custom profiles.
|
- `Linter` -> Runs PSScriptAnalyzer with embedded to custom profiles.
|
||||||
- `UnitTest` -> Executes Pester tests with code coverage with console and log file output.
|
- `UnitTest` -> Runs Pester tests including code coverage report with console and log file output.
|
||||||
- `BuildReport` -> Takes all generated reports and reports them back as Pull Request Comment for a simplified overview.
|
- `BuildReport` -> Takes all generated reports and reports them back as Pull Request Comment for a simplified overview.
|
||||||
- `StateReporter` -> Marks the current pipeline run / build as failed if the previous steps also raised errors.
|
- `StateReporter` -> Marks the current pipeline run / build as failed if the previous steps also raised errors.
|
||||||
- `DoksUpdater` -> Automatically updates the markdown based docs generated form your Comment Based Help blocks in your functions
|
- `DoksUpdater` -> Automatically updates the markdown based docs generated form your Comment Based Help blocks in your functions
|
||||||
|
|
||||||
To use these feature, all you have to do, is follow the `.drone.yml` template:
|
To use these features, all you have to do, is follow the `.drone.yml` template:
|
||||||
|
|
||||||
### `.drone.yml` Template
|
### `.drone.yml` Template
|
||||||
|
|
||||||
@ -40,9 +66,14 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
EXCLUDE: "(.exe|.dll|.ico|.gitkeep)"
|
EXCLUDE: "(.exe|.dll|.ico|.gitkeep)"
|
||||||
commands:
|
commands:
|
||||||
|
- |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y file
|
||||||
|
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Invoke-FileLinter
|
Invoke-FileLinter
|
||||||
}"
|
}"
|
||||||
|
|
||||||
@ -52,7 +83,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Invoke-Linter
|
Invoke-Linter
|
||||||
}"
|
}"
|
||||||
@ -61,9 +93,14 @@ steps:
|
|||||||
image: mcr.microsoft.com/dotnet/sdk:6.0-focal
|
image: mcr.microsoft.com/dotnet/sdk:6.0-focal
|
||||||
failure: ignore
|
failure: ignore
|
||||||
commands:
|
commands:
|
||||||
|
- |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y file
|
||||||
|
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Invoke-UnitTest -Verbosity 'Detailed' -ExcludeTag 'Integration'
|
Invoke-UnitTest -Verbosity 'Detailed' -ExcludeTag 'Integration'
|
||||||
}"
|
}"
|
||||||
@ -79,7 +116,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Send-PRComment
|
Send-PRComment
|
||||||
}"
|
}"
|
||||||
when:
|
when:
|
||||||
@ -92,7 +130,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Invoke-BuildState
|
Invoke-BuildState
|
||||||
}"
|
}"
|
||||||
@ -116,13 +155,15 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Update-ModuleMeta -Verbose
|
Update-ModuleMeta -Verbose
|
||||||
}"
|
}"
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
New-BuildPackage -Verbose
|
New-BuildPackage -Verbose
|
||||||
}"
|
}"
|
||||||
@ -148,7 +189,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Invoke-Publish -Verbose
|
Invoke-Publish -Verbose
|
||||||
}"
|
}"
|
||||||
@ -175,7 +217,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
pwsh -NonInteractive -c "& {
|
pwsh -NonInteractive -c "& {
|
||||||
Import-Module -Name 'DroneHelper';
|
Install-Module -Name 'DroneHelper' -Repository 'PSGallery' -ErrorAction 'Stop';
|
||||||
|
Import-Module -Name 'DroneHelper' -ErrorAction 'Stop';
|
||||||
Install-ModuleDependency;
|
Install-ModuleDependency;
|
||||||
Update-Docs -Verbose
|
Update-Docs -Verbose
|
||||||
}"
|
}"
|
||||||
|
@ -153,19 +153,19 @@
|
|||||||
PSData = @{
|
PSData = @{
|
||||||
|
|
||||||
# Tags applied to this module. These help with module discovery in online galleries.
|
# Tags applied to this module. These help with module discovery in online galleries.
|
||||||
# Tags = @()
|
Tags = @('gitea', 'drone.io', 'Module Build helper')
|
||||||
|
|
||||||
# A URL to the license for this module.
|
# A URL to the license for this module.
|
||||||
# LicenseUri = ''
|
LicenseUri = 'https://gitea.ocram85.com/OCram85/DroneHelper/src/branch/master/LICENSE'
|
||||||
|
|
||||||
# A URL to the main website for this project.
|
# A URL to the main website for this project.
|
||||||
ProjectUri = 'https://gitea.ocram85.com/OCram85/DroneHelper'
|
ProjectUri = 'https://gitea.ocram85.com/OCram85/DroneHelper'
|
||||||
|
|
||||||
# A URL to an icon representing this module.
|
# A URL to an icon representing this module.
|
||||||
# IconUri = ''
|
IconUri = 'https://gitea.ocram85.com/OCram85/DroneHelper/raw/branch/master/assets/logo256.png'
|
||||||
|
|
||||||
# ReleaseNotes of this module
|
# ReleaseNotes of this module
|
||||||
# ReleaseNotes = ''
|
ReleaseNotes = 'See https://gitea.ocram85.com/OCram85/DroneHelper/releases page for details.'
|
||||||
|
|
||||||
# Prerelease string of this module
|
# Prerelease string of this module
|
||||||
# Prerelease = ''
|
# Prerelease = ''
|
||||||
|
Reference in New Issue
Block a user