forked from dbt-labs/jaffle-shop-classic
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (28 loc) · 877 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
30
31
32
33
34
35
36
37
38
39
40
init:
pipenv update
pipenv run dbt deps
clean-env:
:> .env
env-development-salt:
echo SALT=maldon >> .env
env-target:
echo DATABRICKS_TARGET=$$(git symbolic-ref --short HEAD | tr /- _) >> .env
package-project:
for PACKAGE in dbt_project_evaluator ; do \
cp package_projects/$$PACKAGE.yml dbt_packages/$$PACKAGE/dbt_project.yml ; \
done
build-env: clean-env env-development-salt env-target package-project
dbt-deps:
pipenv run dbt deps
dbt-build: build-env
pipenv run dbt build --selector jaffle_shop
run-dbt-project-evaluator: dbt-deps build-env
pipenv run dbt --warn-error build --select package:dbt_project_evaluator dbt_project_evaluator_exceptions
lint: build-env
pipenv run sqlfluff lint
format: build-env
pipenv run sqlfluff fix
run-python-tests:
pipenv run pytest --quiet --show-capture=no --tb=no
run-python-tests-detailed:
pipenv run pytest