summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2019-11-16 20:59:04 -0600
committerMichael Herold <opensource@michaeljherold.com>2019-11-17 11:49:54 -0600
commita193865fde1b4c9548d91b06abea479235fcd556 (patch)
tree6f3e0387e7638cb8c57a2494a87dfba28f84c6b2
parent729c99b11ad73755840590faee6909c315898a53 (diff)
downloadhashie-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.md11
-rwxr-xr-xbin/setup7
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
```
diff --git a/bin/setup b/bin/setup
index b65ed50..e52c127 100755
--- a/bin/setup
+++ b/bin/setup
@@ -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