-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstep_template.yml
94 lines (86 loc) · 1.99 KB
/
step_template.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: |
python -m pip install --upgrade pip==20.1 setuptools>=40.1.0 wheel
python -m pip install dbt-synapse
displayName: 'dbt-synapse install'
- task: AzureCLI@2
displayName: 'dbt debug'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt --version
dbt debug --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt clean'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt clean --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt deps'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt deps --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt seed'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt seed --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt stage external sources'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt run-operation stage_external_sources --vars "ext_full_refresh: true" --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt run'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt run --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)
- task: AzureCLI@2
displayName: 'dbt test'
inputs:
azureSubscription: ITSDETEAM
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt test --profiles-dir $(location)
env:
HOST: $(host)
DB: $(db)