diff options
author | Michael Herold <opensource@michaeljherold.com> | 2019-11-16 20:59:04 -0600 |
---|---|---|
committer | Michael Herold <opensource@michaeljherold.com> | 2019-11-17 11:49:54 -0600 |
commit | a193865fde1b4c9548d91b06abea479235fcd556 (patch) | |
tree | 6f3e0387e7638cb8c57a2494a87dfba28f84c6b2 | |
parent | 729c99b11ad73755840590faee6909c315898a53 (diff) | |
download | hashie-a193865fde1b4c9548d91b06abea479235fcd556.tar.gz |
Improve the setup script
We weren't installing the dependencies for the integration tests so the
default Rake task was failing upon first run on a new machine.
-rw-r--r-- | CONTRIBUTING.md | 11 | ||||
-rwxr-xr-x | bin/setup | 7 |
2 files changed, 15 insertions, 3 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b96827..7eb5cc0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,12 +23,19 @@ git pull upstream master git checkout -b my-feature-branch ``` -#### Bundle Install and Test +#### Install dependencies + +You can use the setup script to install dependencies for the gem and its integration tests. + +``` +bin/setup +``` + +#### Test Ensure that you can build the project and run tests. ``` -bundle install bundle exec rake ``` @@ -1,7 +1,12 @@ #!/bin/bash + set -euo pipefail IFS=$'\n\t' bundle install -# Do any other automated setup that you need to do here +for dir in spec/integration/*; do + pushd "$dir" + bundle install + popd +done |