diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-09 09:20:04 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-09 09:20:04 -0700 |
| commit | fe4d46abda860db5cdb3f24f3ab083c90ea139ed (patch) | |
| tree | 60d0aa4e9a70840cb9aea613371adb63d7ce3e8d /bin | |
| parent | eb54b7a153c2b7b3b7e82ca2c6449890b3d88bf4 (diff) | |
| parent | f16af48f9b7cf99e8d1cdb1e44dad9aad3a090b6 (diff) | |
Merge with master
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/test-local | 15 |
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 |
