-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7119 from habitat-sh/sm/update-install-scripts
Update install scripts to pull from packages.chef.io for new releases
- Loading branch information
Showing
7 changed files
with
337 additions
and
26 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,8 @@ | ||
Write-Host "--- Installing pester" | ||
hab pkg install core/pester --channel stable | ||
Import-Module "$(hab pkg path core/pester)\module\pester.psd1" | ||
$env:HAB_NOCOLORING = "true" | ||
|
||
Write-Host "--- Running install.ps1 tests" | ||
Invoke-Pester components/hab/tests/test_install_script.ps1 -EnableExit | ||
|
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,20 @@ | ||
#!/bin/sh | ||
|
||
if ! command -v bats >/dev/null; then | ||
if [ "$(uname)" = "Darwin" ]; then | ||
echo "--- Installing bats" | ||
brew install bats-core | ||
fi | ||
fi | ||
|
||
if ! command -v gpg >/dev/null; then | ||
if [ "$(uname)" = "Darwin" ]; then | ||
echo "--- Installing gpg" | ||
brew install gnupg | ||
fi | ||
fi | ||
|
||
echo "--- Testing install.sh" | ||
# Bats in chefes/buildkite is a hab-binliked install to the default directory | ||
# of /bin, but /bin isn't on our path. | ||
bats components/hab/tests/test_install_script.bats |
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
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
Oops, something went wrong.