File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace :test do
1919 ENV [ "PARADEDB_TEST_DSN" ] ||= "postgresql://postgres:postgres@localhost:5432/postgres"
2020 ENV [ "PGPASSWORD" ] ||= "postgres"
2121
22- sh "bundle exec rspec spec --pattern '**/*_integration_spec.rb,**/*integration*_spec.rb '"
22+ sh "bundle exec rspec spec --pattern '**/*_integration_spec.rb'"
2323 end
2424
2525 desc "Run all tests (unit + integration)"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -euo pipefail
3+ if [[ " ${BASH_SOURCE[0]} " == " ${0} " ]]; then
4+ BOOTSTRAP_SOURCED=0
5+ set -euo pipefail
6+ else
7+ BOOTSTRAP_SOURCED=1
8+ fi
9+
10+ bootstrap_return () {
11+ local code=" ${1:- 0} "
12+ if [[ " ${BOOTSTRAP_SOURCED} " == " 1" ]]; then
13+ return " ${code} "
14+ fi
15+
16+ exit " ${code} "
17+ }
418
519RUBY_VERSION=" 4.0.0"
620BUNDLER_VERSION=" 4.0.3"
@@ -13,12 +27,12 @@ if command -v ruby >/dev/null 2>&1 && ruby --version | grep -qE "ruby 4\.(0|1)";
1327 gem install " bundler:${BUNDLER_VERSION} "
1428 fi
1529 bundle install > /dev/null
16- exit 0
30+ bootstrap_return 0
1731fi
1832
1933if ! command -v rbenv > /dev/null 2>&1 ; then
2034 echo " rbenv is not installed. Install rbenv and retry." >&2
21- exit 1
35+ bootstrap_return 1
2236fi
2337
2438eval " $( rbenv init -) "
Original file line number Diff line number Diff line change @@ -39,5 +39,5 @@ export PGPASSWORD="${PASSWORD}"
3939if [[ $# -gt 0 ]]; then
4040 bundle exec rspec " $@ "
4141else
42- bundle exec rspec spec --pattern ' **/*_integration_spec.rb,**/*integration*_spec.rb '
42+ bundle exec rspec spec --pattern ' **/*_integration_spec.rb'
4343fi
You can’t perform that action at this time.
0 commit comments