About
Author: Brandon Olin [devblackops.io]
Overview
An example of using the Release Pipeline Model with PowerShell-based tools. This repository hosts the ServerInfo.ps1
script which will return system information about a given computer. This repository also includes associated tests and build
tasks for day to day operations and deployment of the script.
See Building a Simple Release Pipeline in PowerShell using psake, Pester, and PSDeploy for a detailed walkthrough of this repo.
Usage
A psake
script has been created to manage the various operations related to testing and deployment of ServerInfo.ps1
Build Operations
- Test the script via Pester and Script Analyzer
.\build.ps1
- Test the script with Pester only
.\build.ps1 -Task Test
- Test the script with Script Analyzer only
.\build.ps1 -Task Analyze
- Deploy the script via PSDeploy
.\build.ps1 -Task Deploy