-
Notifications
You must be signed in to change notification settings - Fork 123
/
tox.ini
71 lines (67 loc) · 2.25 KB
/
tox.ini
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
[tox]
skipsdist = True
envlist = lint_all, testenv
[testenv]
passenv =
# redshift
REDSHIFT_HOST
REDSHIFT_USER
DBT_ENV_SECRET_REDSHIFT_PASS
REDSHIFT_DATABASE
REDSHIFT_SCHEMA
REDSHIFT_PORT
REDSHIFT_SPECTRUM_IAM_ROLE
# snowflake
SNOWFLAKE_ACCOUNT
SNOWFLAKE_USER
DBT_ENV_SECRET_SNOWFLAKE_PASS
SNOWFLAKE_ROLE
SNOWFLAKE_DATABASE
SNOWFLAKE_WAREHOUSE
SNOWFLAKE_SCHEMA
# bigquery
BIGQUERY_KEYFILE_JSON
BIGQUERY_PROJECT
BIGQUERY_SCHEMA
# run dbt commands directly, assumes dbt is already installed in environment
[testenv:dbt_integration_redshift]
changedir = integration_tests
allowlist_externals =
dbt
skip_install = true
commands =
dbt deps --target redshift
dbt seed --full-refresh --target redshift
dbt run --target redshift
dbt run-operation prep_external --target redshift
dbt run-operation dbt_external_tables.stage_external_sources --vars 'ext_full_refresh: true' --target redshift
dbt run-operation dbt_external_tables.stage_external_sources --target redshift
dbt test --target redshift
# run dbt commands directly, assumes dbt is already installed in environment
[testenv:dbt_integration_snowflake]
changedir = integration_tests
allowlist_externals =
dbt
skip_install = true
commands =
dbt deps --target snowflake
dbt seed --full-refresh --target snowflake
dbt run --target snowflake
dbt run-operation prep_external --target snowflake
dbt run-operation dbt_external_tables.stage_external_sources --vars 'ext_full_refresh: true' --target snowflake
dbt run-operation dbt_external_tables.stage_external_sources --target snowflake
dbt test --target snowflake
# run dbt commands directly, assumes dbt is already installed in environment
[testenv:dbt_integration_bigquery]
changedir = integration_tests
allowlist_externals =
dbt
skip_install = true
commands =
dbt deps --target bigquery
dbt seed --full-refresh --target bigquery
dbt run --target bigquery
dbt run-operation prep_external --target bigquery
dbt run-operation dbt_external_tables.stage_external_sources --vars 'ext_full_refresh: true' --target bigquery
dbt run-operation dbt_external_tables.stage_external_sources --target bigquery
dbt test --target bigquery