-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-686) Upgrade Scenarios for Prereleases
- upgrade existing package with prerelease available but without prerelease specified - Upgrading an existing package with prerelease available and prerelease specified - Upgrade installed prerelease without prerelease specified - Upgrade installed prerelease with prerelease available with `--exclude-prerelease` - Upgrade all with prereleases installed - Upgrade all with prereleases installed with `--exclude-prerelease` specified
- Loading branch information
1 parent
3ce7e90
commit 25ab95f
Showing
21 changed files
with
790 additions
and
1 deletion.
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
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
1 change: 1 addition & 0 deletions
1
...atey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyBeforeModify.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Before Modification" |
1 change: 1 addition & 0 deletions
1
...hocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyinstall.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Installed" |
1 change: 1 addition & 0 deletions
1
...colatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyuninstall.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Uninstalled" |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe
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 @@ | ||
1.1.1-beta |
10 changes: 10 additions & 0 deletions
10
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe.config
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,10 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<appSettings> | ||
<add key="test" value="default 1.1.0"/> | ||
<add key="testReplace" value="default 1.1.0"/> | ||
</appSettings> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> | ||
</startup> | ||
</configuration> |
9 changes: 9 additions & 0 deletions
9
....tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe.config.install.xdt
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,9 @@ | ||
<?xml version="1.0"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<appSettings xdt:Transform="InsertIfMissing"> | ||
<add key="test" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" /> | ||
<add key="testReplace" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="Replace"/> | ||
<add key="insert" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing"/> | ||
<add key="insertNew" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing"/> | ||
</appSettings> | ||
</configuration> |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/graphical.exe
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 @@ | ||
1.1.1-beta |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/graphical.exe.gui
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 @@ | ||
1.1.0 |
18 changes: 18 additions & 0 deletions
18
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/upgradepackage.nuspec
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,18 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>upgradepackage</id> | ||
<version>1.1.1-beta</version> | ||
<title>upgradepackage</title> | ||
<authors>__REPLACE_AUTHORS_OF_SOFTWARE__</authors> | ||
<owners>__REPLACE_YOUR_NAME__</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>__REPLACE__</description> | ||
<summary>__REPLACE__</summary> | ||
<releaseNotes /> | ||
<tags>upgradepackage admin</tags> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
1 change: 1 addition & 0 deletions
1
...tey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyBeforeModify.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Before Modification" |
1 change: 1 addition & 0 deletions
1
...ocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyinstall.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Installed" |
1 change: 1 addition & 0 deletions
1
...olatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyuninstall.ps1
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 @@ | ||
Write-Output "$env:PackageName $env:PackageVersion Uninstalled" |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe
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 @@ | ||
1.1.1-beta2 |
10 changes: 10 additions & 0 deletions
10
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe.config
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,10 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<appSettings> | ||
<add key="test" value="default 1.1.0"/> | ||
<add key="testReplace" value="default 1.1.0"/> | ||
</appSettings> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> | ||
</startup> | ||
</configuration> |
9 changes: 9 additions & 0 deletions
9
...tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe.config.install.xdt
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,9 @@ | ||
<?xml version="1.0"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<appSettings xdt:Transform="InsertIfMissing"> | ||
<add key="test" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" /> | ||
<add key="testReplace" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="Replace"/> | ||
<add key="insert" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing"/> | ||
<add key="insertNew" value="1.1.0" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing"/> | ||
</appSettings> | ||
</configuration> |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/graphical.exe
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 @@ | ||
1.1.1-beta2 |
1 change: 1 addition & 0 deletions
1
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/graphical.exe.gui
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 @@ | ||
1.1.0 |
18 changes: 18 additions & 0 deletions
18
src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/upgradepackage.nuspec
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,18 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>upgradepackage</id> | ||
<version>1.1.1-beta2</version> | ||
<title>upgradepackage</title> | ||
<authors>__REPLACE_AUTHORS_OF_SOFTWARE__</authors> | ||
<owners>__REPLACE_YOUR_NAME__</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>__REPLACE__</description> | ||
<summary>__REPLACE__</summary> | ||
<releaseNotes /> | ||
<tags>upgradepackage admin</tags> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
Oops, something went wrong.