Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb5c0a2
commit bd7d8ab
Showing
3 changed files
with
43 additions
and
12 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
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,29 @@ | ||
# Test examples | ||
|
||
|
||
Installing latest version of a package from Chocolatey.org | ||
~~~ruby | ||
choco.exe install -fdvy nodejs.install | ||
~~~ | ||
|
||
Retesting failing package from Chocolatey.org | ||
~~~ruby | ||
choco.exe install -fdvy github --version 3.0.11.0 | ||
~~~ | ||
|
||
|
||
After dropping badpackage.1.0.0.nupkg into the packages directory: | ||
~~~ruby | ||
choco.exe install -fdvy badpackage --source "'c:\\packages;http://chocolatey.org/api/v2/'" | ||
~~~ | ||
|
||
|
||
For interactive testing of Chocolatey itself - please ignore if you are not doing so. Otherwise you need to share a folder with this box named code and have a temp folder in it where you drop the `code_drop\chocolatey\console\choco.exe` file to after building it from source. | ||
~~~ruby | ||
config.vm.synced_folder "code", "ABSOLUTE PATH TO CODE FOLDER" | ||
|
||
config.vm.provision :shell, :powershell_elevated_interactive => true, :inline => <<SCRIPT | ||
Copy-Item 'c:\\code\\temp\\choco.exe' 'c:\\ProgramData\\chocolatey\\choco.exe' -Force | ||
choco.exe unpackself -f | ||
SCRIPT | ||
~~~ |
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