-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework instructions to move complex stuf to Going further
- Loading branch information
1 parent
86bbfed
commit 374902e
Showing
2 changed files
with
78 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
version: "3" | ||
|
||
silent: true | ||
|
||
vars: | ||
YEARS: 6 | ||
DB: bigquery | ||
|
||
tasks: | ||
venv: | ||
cmds: | ||
- python3 -m venv .venv | ||
silent: true | ||
|
||
install: | ||
cmds: | ||
- source .venv/bin/activate && python3 -m pip install --upgrade pip --progress-bar off > /dev/null | ||
- source .venv/bin/activate && python3 -m pip install -r requirements.txt --progress-bar off > /dev/null | ||
silent: true | ||
- source .venv/bin/activate && python3 -m pip install dbt-core dbt-{{.DB}} | ||
|
||
gen: | ||
cmds: | ||
- source .venv/bin/activate && jafgen | ||
silent: true | ||
- source .venv/bin/activate && jafgen {{.YEARS}} | ||
|
||
build: | ||
seed: | ||
cmds: | ||
- dbt deps | ||
- dbt seed | ||
- dbt run | ||
- dbt test | ||
- source .venv/bin/activate && dbt seed | ||
|
||
clean: | ||
cmds: | ||
- rm -rf jaffle-data | ||
silent: true | ||
- source .venv/bin/activate && python3 -m pip uninstall dbt-core dbt-{{.DB}} | ||
|
||
setup: | ||
load: | ||
cmds: | ||
- task: venv | ||
- task: install | ||
- task: gen | ||
- task: build | ||
- task: seed | ||
- task: clean |