forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
74 lines (66 loc) · 2.46 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
[tox]
skipsdist = True
envlist = unit-py27, unit-py36, integration-postgres-py27, integration-postgres-py36, integration-snowflake-py27, integration-snowflake-py36, pep8
[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=/root/
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=/root/
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-postgres-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/root/
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-py36]
basepython = python3.6
passenv = *
setenv =
HOME=/root/
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:pywin]
basepython = {env:PYTHON:}\python.exe
setenv =
DBT_CONFIG_DIR = ~/.dbt
DBT_INVOCATION_ENV = ci-appveyor
commands = nosetests -v -A "type!='snowflake'" --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov test/unit test/integration
deps =
-rrequirements.txt
-rdev_requirements.txt