summaryrefslogtreecommitdiff
path: root/bin/test
diff options
context:
space:
mode:
Diffstat (limited to 'bin/test')
-rwxr-xr-xbin/test17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/test b/bin/test
new file mode 100755
index 0000000..3c7439d
--- /dev/null
+++ b/bin/test
@@ -0,0 +1,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