forked from dbt-labs/jaffle-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
39 lines (31 loc) · 835 Bytes
/
Taskfile.yml
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
version: "3"
silent: true
vars:
YEARS: 6
DB: bigquery
tasks:
venv:
cmds:
- python3 -m venv .venv
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
- source .venv/bin/activate && python3 -m pip install dbt-core dbt-{{.DB}} > /dev/null
gen:
cmds:
- source .venv/bin/activate && jafgen {{.YEARS}}
seed:
cmds:
- source .venv/bin/activate && dbt seed
clean:
cmds:
- rm -rf jaffle-data
- source .venv/bin/activate && python3 -m pip uninstall dbt-core dbt-{{.DB}} -y
load:
cmds:
- task: venv
- task: install
- task: gen
- task: seed
- task: clean