forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to generate NuGet package.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*~ | ||
*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |