Skip to content

Cleanup#7

Open
Victoremepunto wants to merge 3 commits intoRedHatInsights:mainfrom
Victoremepunto:cleanup
Open

Cleanup#7
Victoremepunto wants to merge 3 commits intoRedHatInsights:mainfrom
Victoremepunto:cleanup

Conversation

@Victoremepunto
Copy link
Copy Markdown
Contributor

  • Moves all function definitions on top of the script
  • Sets all variable definitions next
  • Remove all references to bonfire on the variables and directory names
  • Reuse the cicd directory to create the Python virtual env where bonfire gets installed

Comment thread bootstrap.sh
python3 -m venv .bonfire_venv
source .bonfire_venv/bin/activate
python3 -m venv "${CICD_ROOT}/.bonfire_venv"
source "${CICD_ROOT}/.bonfire_venv/bin/activate"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we can merge this in yet, there's a few unit_test.sh's that would be impacted by this, for ex:

https://github.com/RedHatInsights/insights-host-inventory/blob/master/unit_test.sh#L26

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

argh - that's why we don't want to hardcode config

nice catch - I'll think of a way to handle this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants