From a193865fde1b4c9548d91b06abea479235fcd556 Mon Sep 17 00:00:00 2001 From: Michael Herold Date: Sat, 16 Nov 2019 20:59:04 -0600 Subject: [PATCH] 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. --- CONTRIBUTING.md | 11 +++++++++-- 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 ``` 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