summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-09-03 18:13:31 -0600
committermo khan <mo@mokhan.ca>2019-09-03 18:13:31 -0600
commitf03afe789e5c7319359af20fd38c3e2438d0dc9a (patch)
tree958112ab778214ca1cda85f94b65713acda75272
parent545727cf9c46bcf748f06bbfe697f8243a624a4c (diff)
add bin/setup script
-rwxr-xr-xbin/setup3
-rwxr-xr-xbin/test5
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/setup b/bin/setup
new file mode 100755
index 0000000..e899ba1
--- /dev/null
+++ b/bin/setup
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+git submodule update --init --remote
diff --git a/bin/test b/bin/test
index 42b2807..439013a 100755
--- a/bin/test
+++ b/bin/test
@@ -1,4 +1,9 @@
#!/bin/sh
+set -e
+
+cd "$(basename $0)/.."
+
+./bin/setup
export PATH="./vendor/bats/bin:./bin:$PATH"
bats --tap test