forked from dbt-labs/dbt-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 806 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.DEFAULT_GOAL:=help
.PHONY: test
test: ## Run the integration tests.
@./run_test.sh $(target)
.PHONY: test_tox
test: ## Run the integration tests with tox
@\
tox -e dbt_integration_$(target)
.PHONY: dev
dev: ## Installs dbt-* packages in develop mode along with development dependencies.
@\
echo "Install dbt-$(target)..."; \
python -m pip install --upgrade pip setuptools; \
python -m pip install dbt-core "dbt-$(target)";
.PHONY: setup-db
setup-db: ## Setup Postgres database with docker-compose for system testing.
@\
docker-compose up --detach postgres
.PHONY: help
help: ## Show this help message.
@echo 'usage: make [target]'
@echo
@echo 'targets:'
@grep -E '^[8+a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'