diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-07 12:44:35 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-07 12:44:35 -0600 |
| commit | 77a8ffa122d619de1cf1ddf78d4223d309a57a4e (patch) | |
| tree | d9b075328b90b14b5a614de896d60b3f11a84df6 /spec/support | |
| parent | e9580d91d696577df27718a2f5367b84568f82de (diff) | |
Export CI_PROJECT_DIR for integration test runner
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/integration_test_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index 8d5f8b6..7dc64fe 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -69,7 +69,8 @@ module IntegrationTestHelper def scan(env: {}) execute(env, 'mkdir -p pkg/ && gem build --silent -o pkg/license-management-test.gem ./*.gemspec') Dir.chdir project_path do - return {} unless execute(env, "#{License::Management.root.join('run.sh')} analyze .") + merged_env = { 'CI_PROJECT_DIR' => project_path.to_s }.merge(env) + return {} unless execute(merged_env, "#{License::Management.root.join('run.sh')} analyze .") report_path = project_path.join('gl-license-scanning-report.json') return {} unless report_path.exist? |
