Skip to content

Commit

Permalink
Add script to generate NuGet package.
Browse files Browse the repository at this point in the history
  • Loading branch information
uncas committed Apr 29, 2012
1 parent f2f2258 commit 5870753
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
*.nupkg
21 changes: 21 additions & 0 deletions scripts/Pester.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Pester</id>
<version>$version$</version>
<title>Pester</title>
<description>A BDD style testing tool for Powershell</description>
<tags>powershell testing bdd</tags>
<authors>Scott Muc</authors>
<projectUrl>https://github.com/scottmuc/Pester</projectUrl>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
</metadata>
<files>
<file src="test.ps1" target="tools" />
<file src="..\*.*" target="tools" />
<file src="..\*" target="tools" />
<file src="..\Examples\**\*.*" target="tools\Examples" />
<file src="..\Functions\**\*.*" target="tools\Functions" />
<file src="..\ObjectAdaptations\**\*.*" target="tools\ObjectAdaptations" />
</files>
</package>
4 changes: 4 additions & 0 deletions scripts/pack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$commitCount = (git log --oneline).count
$version = "1.0.4.$commitCount"
nuget pack Pester.nuspec -version $version
cp *.nupkg C:\NuGetPackages

0 comments on commit 5870753

Please sign in to comment.