11# #@ Makefile
22
3- # #@ Define the default airbyte-ci version
4- AIRBYTE_CI_VERSION ?= latest
5-
63# # Detect the operating system
74OS := $(shell uname)
85
9- tools.airbyte-ci.install : tools.airbyte-ci.clean tools.airbyte-ci-binary.install tools.airbyte-ci.check
10-
11- tools.airbyte-ci-binary.install : # # Install airbyte-ci binary
12- @python airbyte-ci/connectors/pipelines/pipelines/external_scripts/airbyte_ci_install.py ${AIRBYTE_CI_VERSION}
13-
14- tools.airbyte-ci-dev.install : # # Install the local development version of airbyte-ci
15- @python airbyte-ci/connectors/pipelines/pipelines/external_scripts/airbyte_ci_dev_install.py
16-
17- tools.airbyte-ci.check : # # Check if airbyte-ci is installed correctly
18- @./airbyte-ci/connectors/pipelines/pipelines/external_scripts/airbyte_ci_check.sh
19-
20- tools.airbyte-ci.clean : # # Clean airbyte-ci installations
21- @./airbyte-ci/connectors/pipelines/pipelines/external_scripts/airbyte_ci_clean.sh
22-
236tools.git-hooks.clean : # # Clean git hooks
247 @echo " Unset core.hooksPath"
258 @git config --unset core.hooksPath || true
@@ -39,14 +22,14 @@ tools.pre-commit.install.Darwin:
3922 @brew install pre-commit maven
4023 @echo " Pre-commit installation complete"
4124
42- tools.git-hooks.install : tools.airbyte-ci.install tools. pre-commit.install.$(OS ) tools.git-hooks.clean # # Setup pre-commit hooks
25+ tools.git-hooks.install : tools.pre-commit.install.$(OS ) tools.git-hooks.clean # # Setup pre-commit hooks
4326 @echo " Installing pre-commit hooks..."
4427 @pre-commit install --hook-type pre-push
4528 @echo " Pre-push hooks installed."
4629
47- tools.install : tools.airbyte-ci.install tools. pre-commit.install.$(OS )
30+ tools.install : tools.pre-commit.install.$(OS )
4831
4932version.bulk.cdk :
5033 @echo " Latest version of the Bulk CDK is $( shell curl -k --silent " https://airbyte.mycloudrepo.io/public/repositories/airbyte-public-jars/io/airbyte/bulk-cdk/bulk-cdk-core-load/maven-metadata.xml" | sed -ne ' s:.*<latest>\(.*\)</latest>:\1:p' ) "
5134
52- .PHONY : tools.install tools.pre-commit.install tools.git-hooks.install tools.git-hooks.clean tools.airbyte-ci.install tools.airbyte-ci-dev.install tools.airbyte-ci.check tools.airbyte-ci.clean
35+ .PHONY : tools.install tools.pre-commit.install tools.git-hooks.install tools.git-hooks.clean
0 commit comments