summaryrefslogtreecommitdiff
path: root/bin/test
blob: 3c7439dfb0a2c8cfeadb13b7d50673640ca81614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

cd "$(dirname "$0")/.."

[ -z "$DEBUG" ] || set -x

echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
bin/setup

echo ["$(date "+%H:%M:%S")"] "==> Running tests…"
if [ $# -eq 0 ]; then
  bundle exec rspec spec
else
  bundle exec rspec "$@"
fi