An open API service indexing awesome lists of open source software.

https://github.com/devblackops/Release-Pipeline-Example

Release Pipeline example using PowerShell-based tools
https://github.com/devblackops/Release-Pipeline-Example

Last synced: 4 months ago
JSON representation

Release Pipeline example using PowerShell-based tools

Awesome Lists containing this project

README

        

## About
Author: Brandon Olin [[devblackops.io](https://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](https://devblackops.io/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
```powershell
.\build.ps1
```

* Test the script with Pester only
```powershell
.\build.ps1 -Task Test
```

* Test the script with Script Analyzer only
```powershell
.\build.ps1 -Task Analyze
```

* Deploy the script via PSDeploy
```powershell
.\build.ps1 -Task Deploy
```