-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
50 lines (44 loc) · 1.91 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.DEFAULT_GOAL:=help
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: test-dbt-utils
test-dbt-utils: ## Runs integration tests for dbt-utils
@\
cd integration_tests/dbt_utils && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt clean && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt deps && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt seed --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt run --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt test
.PHONY: test-dbt-date
test-dbt-date: ## Runs integration tests for dbt-date
@\
cd integration_tests/dbt_date && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt clean && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt deps && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt seed --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt run --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt test
.PHONY: test-dbt-expectations
test-dbt-expectations: ## Runs integration tests for dbt-expectations
@\
cd integration_tests/dbt_expectations && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt clean && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt deps && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt seed --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt run --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt test
.PHONY: test-dbt-audit-helper
test-dbt-audit-helper: ## Runs integration tests for dbt-audit-helper
@\
cd integration_tests/dbt_audit_helper && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt clean && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt deps && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt seed --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt run --full-refresh && \
DBT_PROFILES_DIR=$(ROOT_DIR)devops dbt test
.PHONY: help
help: ## Show this help message.
@echo 'usage: make [target]'
@echo
@echo 'targets:'
@grep -E '^[7+a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'