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

WIP: Make code centralization and lint image update #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glarizza
Copy link

This PR contains the work being performed to centralize all the helper functions from test/make.sh in the CFT modules and ensure that code is available on the CFT lint Docker image. This PR is mainly for visibility - I don't imagine we want to merge into this fork's master branch.

glarizza added 2 commits July 18, 2019 13:32
This commit updates the CFT lint image with the helper functions
previously saved as `test/make.sh` in every module. These helper
functions are being centralized within the image to reduce code
duplication across the modules. The file has been named to
`task_helper_functions.sh` to indicate that these helper functions are
available for module tasks regardless of whether those tasks
are called from `make` or not.

The commit also upgrades the version of Terraform to 0.12.4 and bumps
the minor version of the lint image to accommodate the change.
This commit takes the helper functions from the `test/make.sh` file that
is included in most CFT modules and incorporates them into the Lint
image for the purpose of centralizing that code and reducing
duplication.  The `make.sh` file containing the helper functions has
been renamed go `task_helper_functions.sh` to indicate that the
functions are independent from `make`, and each helper function has its
own wrapper script that will source `task_helper_functions.sh` and call
the function directly (with arguments handled as-necessary). Finally,
the Docker image has been modified to pull in all necessary files and
$PATH has been modified to accommodate the wrapper scripts.
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.

1 participant