diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-09 11:26:40 +0000 |
|---|---|---|
| committer | Can Eldem <celdem@gitlab.com> | 2020-01-09 11:26:40 +0000 |
| commit | d89872f850332736eb174f2b0ab28692fda6bf46 (patch) | |
| tree | 3944b2eade680f90739f2f3805dfec1a7bb1a360 /bin/test-local | |
| parent | d51e4d90b3e7dbfc5b0a9ec90f37baf84dc105d0 (diff) | |
Upgrade python from 3.5 to 3.8
Diffstat (limited to 'bin/test-local')
| -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 |
