-
Notifications
You must be signed in to change notification settings - Fork 4
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
To build use a PowerShell prompt to execute.
.\build.ps1The script will bootstrap itself and start the build. Unit tests will be executed after the build is complete.
To build without unit tests.
.\build.ps1 -noTestsUsing the script you can get the current version in the .nuspec files with.
.\build.ps1 -getversionThe 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-
$env:IsDeveloperMachineif true, allpecan-wafflefunctions and aliases are exported. -
$env:PesterEnableCodeCoverageif 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.