summaryrefslogtreecommitdiff
path: root/bin/test
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-14 12:43:20 -0600
committermo khan <mo.khan@gmail.com>2020-04-14 12:43:20 -0600
commit2b69afb35bd1b123e00d3efabce0d4c4aefdd008 (patch)
treee750f551d075ef48f944b09d108f8a466d675c33 /bin/test
parent82d9dfd9e98e90e5457c5f079e2c65252518d199 (diff)
Fix linter errors
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