forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
135 lines (121 loc) · 4.58 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[tox]
skipsdist = True
envlist = unit-py27, unit-py36, integration-postgres-py27, integration-postgres-py36, integration-redshift-py27, integration-redshift-py36, integration-snowflake-py27, integration-snowflake-py36, pep8, integration-bigquery-py27, integration-bigquery-py36
[testenv:pep8]
basepython = python3.6
commands = /bin/bash -c '$(which pep8) dbt/ --exclude dbt/templates.py'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:unit-py27]
basepython = python2.7
commands = /bin/bash -c '$(which nosetests) -v {posargs} test/unit'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:unit-py36]
basepython = python3.6
commands = /bin/bash -c '{envpython} $(which nosetests) -v {posargs} test/unit'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-postgres-py27]
basepython = python2.7
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=postgres {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-snowflake-py27]
basepython = python2.7
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=snowflake {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-bigquery-py27]
basepython = python2.7
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=bigquery {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-redshift-py27]
basepython = python2.7
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=redshift {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-postgres-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=postgres --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov {posargs} test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-snowflake-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=snowflake {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-bigquery-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=bigquery {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:integration-redshift-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v -a type=redshift {posargs} --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration/*'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:explicit-py27]
basepython = python2.7
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v {posargs}'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:explicit-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/home/dbt_test_user
commands = /bin/bash -c '{envpython} $(which nosetests) -v {posargs}'
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev_requirements.txt
[testenv:pywin]
basepython = {env:PYTHON:}\python.exe
passenv = *
setenv =
DBT_CONFIG_DIR = ~/.dbt
DBT_INVOCATION_ENV = ci-appveyor
commands = nosetests -v -a type=postgres -a type=snowflake -a type=bigquery --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/integration test/unit
deps =
-rrequirements.txt
-rdev_requirements.txt