From 98a1dcb9a9f018ad59e993983d02732888f0a295 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Thu, 1 Aug 2024 14:12:13 -0500 Subject: [PATCH] Add bin/test script This script will run `bundle exec rake test` for each gemfile in the `gemfiles` directory. --- bin/test | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/test diff --git a/bin/test b/bin/test new file mode 100755 index 0000000..8c931f0 --- /dev/null +++ b/bin/test @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +GEMFILES_DIR="$(dirname -- $(dirname -- "${BASH_SOURCE}"))/gemfiles" + +for gemfile in "$GEMFILES_DIR"/*.gemfile; do + (set -x; BUNDLE_GEMFILE="$gemfile" bundle exec rake test) + echo +done