-
Notifications
You must be signed in to change notification settings - Fork 4
DSTA-669: Incorporate boostrap from previous repo #66
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ccd1caa
DSTA-669: Bring in code changes from previous repo work.
micjustus-nc f7e21a7
DSTA-669: makefile reference issue with init.mk
micjustus-nc d4a2318
DSTA-669: linting and whitespace removals
micjustus-nc 68c3119
DSTA-669: minor folder name updates
micjustus-nc d60f792
DSTA-669: remove Terraform and unneeded make files
micjustus-nc f8568b3
DSTA-669: remove pipeline dependency and update with equivalent Bash …
micjustus-nc 615210b
DSTA-669: disable Terraform linting
micjustus-nc 5faf149
DSTA-669: disable Terraform linting
micjustus-nc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,57 @@ | ||
| # This file is for you! Edit it to implement your own hooks (make targets) into | ||
| # the project as automated steps to be executed on locally and in the CD pipeline. | ||
|
|
||
| include scripts/init.mk | ||
|
|
||
| # ============================================================================== | ||
|
|
||
| # Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc. | ||
| .DEFAULT_GOAL := help | ||
| .PHONY: help workflow config dependencies githooks-config githooks-run | ||
| .SILENT: help workflow | ||
| .NOTPARALLEL: # this is because make -j could cause race conditions | ||
| .ONESHELL: | ||
| .SHELLFLAGS := -ce | ||
|
|
||
| MAKEFLAGS += --no-print-directory # '+=' preserves caller-supplied flags | ||
| SHELL := /bin/bash | ||
|
|
||
| ifeq (,$(filter oneshell,$(.FEATURES))) | ||
| $(error .ONESHELL not supported (GNU Make 3.82+ required, found $(MAKE_VERSION))) | ||
| endif | ||
|
|
||
| include scripts/make/environment.mk | ||
| include scripts/make/bootstrap.mk | ||
| include scripts/make/azure.mk | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Help & Meta | ||
| # --------------------------------------------------------------------------- | ||
| help: # Print help @Others | ||
| printf "\nUsage: \033[3m\033[93m[arg1=val1] [arg2=val2] \033[0m\033[0m\033[32mmake\033[0m\033[34m <command>\033[0m\n\n" | ||
| perl -e '$(HELP_SCRIPT)' $(MAKEFILE_LIST) | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Bootstrap & Environment | ||
| # --------------------------------------------------------------------------- | ||
| # Configure development environment (main) @Configuration | ||
| config: | ||
| _install-tools | ||
| _install-uv | ||
| githooks-config | ||
| dependencies | ||
|
|
||
| dependencies: # Install dependencies needed to build and test the project @Pipeline | ||
| uv sync --directory nbss | ||
|
|
||
| build: # Build the project artefact @Pipeline | ||
| # TODO: Implement the artefact build step | ||
|
|
||
| publish: # Publish the project artefact @Pipeline | ||
| # TODO: Implement the artefact publishing step | ||
|
|
||
| deploy: # Deploy the project artefact to the target environment @Pipeline | ||
| # TODO: Implement the artefact deployment step | ||
|
|
||
| clean:: # Clean-up project resources (main) @Operations | ||
| # TODO: Implement project resources clean-up step | ||
|
|
||
| config:: # Configure development environment (main) @Configuration | ||
| # TODO: Use only 'make' targets that are specific to this project, e.g. you may not need to install Node.js | ||
| make _install-dependencies | ||
|
|
||
| # ============================================================================== | ||
|
|
||
| ${VERBOSE}.SILENT: \ | ||
| build \ | ||
| clean \ | ||
| config \ | ||
| dependencies \ | ||
| deploy \ | ||
| @if [ -f nbss/pyproject.toml ]; then \ | ||
| uv sync --no-build --directory nbss; \ | ||
| else \ | ||
| echo "Skipping uv sync: nbss/pyproject.toml not found"; \ | ||
| fi | ||
| @if [ -f package.json ]; then \ | ||
| npm install; \ | ||
| else \ | ||
| echo "Skipping npm install: package.json not found"; \ | ||
| fi | ||
|
|
||
| githooks-config: | ||
| if ! command -v pre-commit >/dev/null 2>&1; then \ | ||
| pip install pre-commit; \ | ||
| fi | ||
| pre-commit install | ||
|
|
||
| githooks-run: # Run git hooks configured in this repository @Operations | ||
| pre-commit run \ | ||
| --config scripts/config/pre-commit.yaml \ | ||
| --all-files | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.