summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test-local15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/test-local b/bin/test-local
new file mode 100755
index 0000000..9a84b40
--- /dev/null
+++ b/bin/test-local
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+PROJECT_PATH="$1"
+
+if [ -z "$LM_HOME" ]; then
+ export IMAGE_NAME=${IMAGE_NAME:-$(basename "$PWD"):latest}
+
+ docker run --rm --volume "$PROJECT_PATH":/code "$IMAGE_NAME" analyze /code
+else
+ bash -l ./run.sh analyze "$PROJECT_PATH"
+fi