-
Notifications
You must be signed in to change notification settings - Fork 13
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 #28 from thmttch/post-0.7-release-fixes-and-changes
post 0.7 release fixes and cleanup; from CHANGELOG:
- Loading branch information
Showing
9 changed files
with
126 additions
and
86 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
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,3 @@ | ||
This cookbook is now up for adoption! Open an issue, or contact me in some way, | ||
if you have any interest in taking over maintenance or development of this | ||
cookbook. |
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,44 @@ | ||
# anaconda cookbook: Testing | ||
|
||
## Developer setup and config | ||
|
||
You can try [installing Chef DK](https://docs.chef.io/install_dk.html), but | ||
I've found it much easier to just use RVM and Bundler to manage ruby and gems; | ||
YMMV. | ||
|
||
### Tests | ||
|
||
To run the full test suite: | ||
|
||
```bash | ||
# this will take a while, especially the first time | ||
$> script/cibuild | ||
... | ||
|
||
# check the final result; bash return codes: 0 is good, anything else is not | ||
$> echo $? | ||
``` | ||
|
||
- to run just the [chefspecs](spec/default_spec.rb): | ||
|
||
```bash | ||
$> rspec | ||
``` | ||
|
||
- to run just the test kitchen serverspec [integration | ||
tests](test/integration/default/serverspec/default_spec.rb): | ||
|
||
```bash | ||
# this is done via docker/kitchen-docker | ||
# the list of OSes is defined in .kitchen.yml | ||
$> kitchen verify | ||
# test a specific OS; `kitchen list` | ||
$> kitchen verify default-ubuntu-1604 | ||
``` | ||
|
||
- check for style issues with Foodcritic | ||
|
||
```bash | ||
$> foodcritic | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
log_level :info | ||
log_location STDOUT | ||
|
||
# apparently, this should be the username used to log into https://supermarket.chef.io | ||
# https://blog.chef.io/2015/03/16/using-chef-supermarket-a-guided-tour/ | ||
node_name 'thmttch' | ||
# this might not work with a relative path, and obviously is not checked in! | ||
client_key 'script/release-key.pem' |
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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Don't know how to automate this (creds), so here are the instructions:" | ||
echo "" | ||
cat <<-INSTRUCTIONS | ||
Prep for release: | ||
echo "cut a github release, checkout that tag locally" | ||
echo "" | ||
1. Cut a github release | ||
2. Locally checkout the release tag | ||
3. If not available, log into Supermarket and generate a new key via Manage | ||
Profile. Update release-config.rb accordingly. | ||
echo "use berkshelf to vendor a clean version of the cookbook, and update to supermarket" | ||
echo "" | ||
echo "berks vendor cookbooks" | ||
echo 'knife cookbook site share anaconda "Programming Languages" --cookbook-path cookbooks --config ${CHEF_PUB}' | ||
echo "" | ||
echo "https://docs.getchef.com/knife_cookbook_site.html#share" | ||
Upload to supermarket: | ||
echo "BUMP METADATA.RB for next release! master is development" | ||
echo "" | ||
# Use berkshelf to vendor a clean version of the cookbook; REMOVE ALL VIM | ||
# SWAPFILES! chefignore doesn't seem to do shit. | ||
$> find . -name *.swp | xargs -I[] rm -vf [] | ||
$> berks vendor cookbooks | ||
# Upload to supermarket | ||
$> knife cookbook site share anaconda "Programming Languages" --cookbook-path cookbooks --supermarket-site https://supermarket.chef.io --config script/release-config.rb | ||
echo "https://supermarket.chef.io/cookbooks/anaconda" | ||
Post-release: | ||
echo "ffs chef 12 supermarket release doesn't work; use chefdk = 0.3.6" | ||
1. Bump metadata.rb version for next release! master is development | ||
INSTRUCTIONS |