Skip to content

How to use the build script

Sayed Ibrahim Hashimi edited this page Apr 28, 2016 · 2 revisions

The build script has three purposes.

  • Build and test
  • Publish to nuget.org
  • Set version

How to build

To build use a PowerShell prompt to execute.

.\build.ps1

The script will bootstrap itself and start the build. Unit tests will be executed after the build is complete.

Skip tests

To build without unit tests.

.\build.ps1 -noTests

How to set version

Using the script you can get the current version in the .nuspec files with.

.\build.ps1 -getversion

The version of the nuget package is present in a few files so its best to let the script to take care of updating the value. To update the version.

.\build.ps1 -setversion new-version

Special environment variables

  • $env:IsDeveloperMachine if true, all pecan-waffle functions and aliases are exported.
  • $env:PesterEnableCodeCoverage if true code coverage will be enabled and a report will be displayed

In pecan-waffle.psm1 there is a global object with the settings $global:pecanwafflesettings. You can override each setting in this object by creating an environment variable with the name "PW"+. For example to update the TempDir setting, create an environment variable named PWTempDir.

Clone this wiki locally