Skip to content

Commit 81c51fd

Browse files
authored
Fix createnuget in travis (#85)
Add comments to createnuget script to simplify debugging
1 parent 5670ee5 commit 81c51fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/CreateNuget.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#
77
# Note: If build is unstable, a beta (pre release) version of the nuget will be pushed
88
# If build is stable, a stable (release) version will be pushed
9-
109
# branch must be master to create a nuget
1110
$configuration = "Release"
1211
$nuspecExtension = ".nuspec"
@@ -19,6 +18,8 @@ $apikey = $env:NugetOrgApiKey
1918
# pull_request --> CI build triggered when opening a PR (do nothing here)
2019
$buildType = $env:TRAVIS_EVENT_TYPE
2120

21+
Write-Host ("********************* Begin Create NUget script **************************************")
22+
2223
# create and push nuget off of master branch ONLY
2324
if (($branch -ne $masterString) -and ($buildType -ne "debug"))
2425
{
@@ -231,6 +232,7 @@ function UpdateDependencyVersions([string]$Nuspec, [string]$CsProj)
231232
}
232233

233234
# Make the nuget.exe update itself (We must be at least at nuget 5.0 for this all to work) **************
235+
Write-Host "Update nuget.exe"
234236
& $nuget update -self
235237

236238
# Update the dependency versions in the nuspec files ****************************************************
@@ -254,6 +256,7 @@ UpdateDependencyVersions $ReactiveDomainUITestingNuspec $RDUITestingProject
254256
# *******************************************************************************************************
255257

256258
# Pack the nuspec files to create the .nupkg files using the set versionString *************************
259+
Write-Host "Packing reactivedomain nuget packages"
257260
$versionString = $RDVersion
258261
& $nuget pack $ReactiveDomainNuspec -Version $versionString
259262
& $nuget pack $ReactiveDomainTestingNuspec -Version $versionString
@@ -263,6 +266,7 @@ $versionString = $RDVersion
263266
# *******************************************************************************************************************************
264267

265268
# Push the nuget packages to nuget.org ******************************************************************************************
269+
Write-Host "Push nuget packages to nuget.org"
266270
$ReactiveDomainNupkg = $PSScriptRoot + "\..\ReactiveDomain." + $versionString + ".nupkg"
267271
$ReactiveDomainTestingNupkg = $PSScriptRoot + "\..\ReactiveDomain.Testing." + $versionString + ".nupkg"
268272
$ReactiveDomainUINupkg = $PSScriptRoot + "\..\ReactiveDomain.UI." + $versionString + ".nupkg"

0 commit comments

Comments
 (0)