Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion lib/manageiq/cross_repo/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@ def run_tests
end

def env_vars
{"MANAGEIQ_REPO" => core_repo.path.to_s, "BUNDLE_PATH" => bundle_path.to_s, "TEST_SUITE" => test_suite}
{
"MANAGEIQ_REPO" => core_repo.path.to_s,
"BUNDLE_PATH" => bundle_path.to_s,
"TEST_SUITE" => test_suite,
"CI" => "true",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment here is weird - was that intentional?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nvm - didn't realize this was WIP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup just trying to get it to work, haven't figured out a good way of determining the base_ref yet without hitting the github api so for now hard-coded to oparin

"GITHUB_BASE_REF" => "oparin", # TODO: test_repo.base_ref,
"GITHUB_REF_NAME" => test_repo.ref || test_repo.sha,
"GITHUB_REPOSITORY" => test_repo.identifier,
"GITHUB_REPOSITORY_OWNER" => test_repo.org,
"GITHUB_SERVER_URL" => "https://github.com"
}
end

def with_test_env
Expand Down Expand Up @@ -113,6 +123,9 @@ def run_test_script(test_script)
w.write(test_script)
w.close

puts "** AG: #{env_vars.inspect}"
puts "** AG: #{test_script.inspect}"

system!(env_vars, "/bin/bash -s", :in => r, :out => $stdout, :err => $stderr)
end
end
Expand Down