summaryrefslogtreecommitdiff
path: root/spec/support/integration_test_helper.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-14 18:41:16 -0600
committermo khan <mo.khan@gmail.com>2020-04-14 18:41:16 -0600
commit1b2b95d957860dd25060a2175610e01df103c7b2 (patch)
treedd69f78be8e56b7921852022074cdc012f4e545a /spec/support/integration_test_helper.rb
parent7ca5e094766b70fe8a8783c0c2f33fdeba46d2c5 (diff)
Build a bootable docker image
Diffstat (limited to 'spec/support/integration_test_helper.rb')
-rw-r--r--spec/support/integration_test_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb
index d1ff14a..416438e 100644
--- a/spec/support/integration_test_helper.rb
+++ b/spec/support/integration_test_helper.rb
@@ -69,7 +69,11 @@ module IntegrationTestHelper
end
def scan(env: {})
- return {} unless execute(env, './bin/docker-test', project_path)
+ command = [
+ '/usr/local/bin/ruby -I /opt/spandx-gitlab/lib /usr/local/bin/spandx scan --format=json -r spandx/gitlab -R -l /dev/stderr',
+ project_path
+ ].join(' ')
+ return {} unless execute(env, command)
report_path = "#{project_path}/gl-license-management-report.json"
return {} unless File.exist?(report_path)