summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-07 16:15:24 -0700
committermo khan <mo.khan@gmail.com>2020-03-07 16:15:24 -0700
commitcf743516437ca5b27320b837861867cd4ee28838 (patch)
tree29ea9d12a03dfc4a6897cac9d0ea2463ddbe820a
parent5ffb2e6b2188fd2793420a23d826a5f0684862c2 (diff)
Rename LM_DEBUG to CI_DEBUG_TRACE
-rw-r--r--lib/license/finder/ext.rb2
-rwxr-xr-xrun.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/license/finder/ext.rb b/lib/license/finder/ext.rb
index 91bf297..29db253 100644
--- a/lib/license/finder/ext.rb
+++ b/lib/license/finder/ext.rb
@@ -26,7 +26,7 @@ module LicenseFinder
class Cmd
def self.run(command)
stdout, stderr, status = Open3.capture3(command)
- puts stdout unless ENV['LM_DEBUG'].nil? || ENV['LM_DEBUG'].empty?
+ puts stdout if ENV['CI_DEBUG_TRACE'] == 'true'
[stdout, stderr, status]
end
end
diff --git a/run.sh b/run.sh
index 3b696f1..62e1ff6 100755
--- a/run.sh
+++ b/run.sh
@@ -8,10 +8,10 @@ cd "$2"
BUNDLE_JOBS="$(nproc)"
export BUNDLE_JOBS
export BUNDLE_WITHOUT="development:test"
+export CI_DEBUG_TRACE=${CI_DEBUG_TRACE:-}
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export HISTFILESIZE=0
export HISTSIZE=0
-export LM_DEBUG=${LM_DEBUG:-}
export LM_REPORT_FILE=${LM_REPORT_FILE:-'gl-license-management-report.json'}
export PREPARE="--prepare-no-fail"
export RUBY_GC_HEAP_INIT_SLOTS=800000
@@ -100,7 +100,7 @@ switch_to java "adopt-openjdk-${LM_JAVA_VERSION:-8}"
. "$ASDF_DATA_DIR/plugins/java/set-java-home.sh"
prepare_project
-[[ -n $LM_DEBUG ]] && debug_env
+[[ $CI_DEBUG_TRACE == 'true' ]] && debug_env
scan_project "$PREPARE" \
--format=json \
--save="${LM_REPORT_FILE}" \