Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the hammer gemset before testing #1089

Merged
merged 2 commits into from Jul 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -68,9 +68,11 @@ pipeline {
}

def add_hammer_cli_git_repos(repos = []) {
content = ''
Copy link
Member

Choose a reason for hiding this comment

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

content could be an array and we could join it with "\n", but doesn't have to

for(i = 0; i < repos.size(); i++) {
sh "echo 'gem \"${repos[i].replace('-', '_')}\", :github => \"theforeman/${repos[i]}\"' > Gemfile.local"
content += "gem '${repos[i].replace('-', '_')}', :github => 'theforeman/${repos[i]}'\n"
}
writeFile(file: 'Gemfile.local', text: content)
}

def run_test(args) {
Expand All @@ -80,6 +82,7 @@ def run_test(args) {
try {
configureRVM(ruby, gemset)
withRVM(['bundle install --without=development --jobs=5 --retry=5'], ruby, gemset)
withRVM(['bundle show'], ruby, gemset)
withRVM(['bundle exec rake ci:setup:minitest test TESTOPTS="-v"'], ruby, gemset)
} finally {
cleanupRVM(ruby, gemset)
Expand Down