Skip to content

Commit

Permalink
added logic to makefile to check true/false input
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-dt committed Aug 24, 2023
1 parent 1393bc6 commit 77f2584
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,19 @@ wait ?= false
run: ## Run pipeline in sandbox environment. Must specify pipeline=<training|prediction>. Optionally specify ENABLE_PIPELINE_CACHING=<true|false> (defaults to default Vertex caching behaviour) and wait=<true|false> (default = false). Set compile=false to skip recompiling the pipeline and set build=false to skip rebuilding container images
@if [ $(compile) = "true" ]; then \
$(MAKE) compile ; \
elif [ $(compile) != "false" ]; then \
echo "ValueError: compile must be either true or false" ; \
exit ; \
fi && \
if [ $(build) = "true" ]; then \
$(MAKE) build ; \
elif [ $(build) != "false" ]; then \
echo "ValueError: build must be either true or false" ; \
exit ; \
fi && \
cd pipelines/src && \
poetry run python -m pipelines.utils.trigger_pipeline --template_path=pipelines/${pipeline}/pipeline.yaml --display_name=${pipeline} --wait=${wait}


test: ## Run unit tests for a specific component group or for all component groups and the pipeline trigger code. Specify GROUP=<vertex-components|bigquery-components>
@if [ -n "${GROUP}" ]; then \
echo "Test components under components/${GROUP}" && \
Expand Down

0 comments on commit 77f2584

Please sign in to comment.