File: test_all

package info (click to toggle)
ruby-will-paginate 3.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 444 kB
  • sloc: ruby: 2,940; sh: 50; makefile: 2
file content (21 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -e

binstubs_path="bin"
if [[ -n $CI && $BUNDLE_GEMFILE == */* ]]; then
  binstubs_path="${BUNDLE_GEMFILE%/*}/bin"
fi
export PATH="${binstubs_path}:$PATH"

if [[ $BUNDLE_GEMFILE == *non-rails* ]]; then
  echo "bin/rspec spec-non-rails"
  exec rspec spec-non-rails
fi

status=0
for db in sqlite3 mysql postgres; do
  printf "\e[1;33m[DB] %s\e[m\n" "$db"
  echo "bin/rspec spec"
  DB="$db" rspec spec || status="$?"
done
exit $status