[tox] skipsdist = True envlist = unit-py36, integration-postgres-py36, integration-redshift-py36, integration-snowflake-py36, flake8, integration-bigquery-py36, mypy requires = tox-pip-version [testenv:flake8] basepython = python3.6 commands = /bin/bash -c '$(which flake8) --select=E,W,F --ignore=W504,E741 core/dbt plugins/*/dbt' deps = -r ./dev_requirements.txt [testenv:mypy] basepython = python3.6 commands = /bin/bash -c '$(which mypy) core/dbt' pip_version = pip deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:mypy-dev] basepython = python3.6 commands = /bin/bash -c '$(which mypy) core/dbt' deps = -r ./editable_requirements.txt -r ./dev_requirements.txt [testenv:unit-py36] basepython = python3.6 commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/unit' deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:integration-postgres-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_postgres {posargs} -n4 test/integration/*' /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/rpc/*' deps = ./core ./plugins/postgres -r ./dev_requirements.txt [testenv:integration-snowflake-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_snowflake {posargs} -n4 test/integration/*' deps = ./core ./plugins/snowflake -r ./dev_requirements.txt [testenv:integration-bigquery-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_bigquery {posargs} -n4 test/integration/*' deps = ./core ./plugins/bigquery -r ./dev_requirements.txt [testenv:integration-redshift-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_redshift {posargs} -n4 test/integration/*' deps = ./core ./plugins/postgres ./plugins/redshift -r ./dev_requirements.txt [testenv:integration-presto-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_presto {posargs} -n4 test/integration/*' deps = ./core ./plugins/presto -r ./dev_requirements.txt [testenv:explicit-py36] basepython = python3.6 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs}' deps = -r ./editable_requirements.txt -r ./dev_requirements.txt [testenv:unit-py37] basepython = python3.7 commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/unit' deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:integration-postgres-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_postgres {posargs} -n4 test/integration/*' && \ /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/rpc/*' deps = ./core ./plugins/postgres -r ./dev_requirements.txt [testenv:integration-snowflake-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_snowflake {posargs} -n4 test/integration/*' deps = ./core ./plugins/snowflake -r ./dev_requirements.txt [testenv:integration-bigquery-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_bigquery {posargs} -n4 test/integration/*' deps = ./core ./plugins/bigquery -r ./dev_requirements.txt [testenv:integration-redshift-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_redshift {posargs} -n4 test/integration/*' deps = ./core ./plugins/postgres ./plugins/redshift -r ./dev_requirements.txt [testenv:integration-presto-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_presto {posargs} -n4 test/integration/*' deps = ./core ./plugins/presto -r ./dev_requirements.txt [testenv:explicit-py37] basepython = python3.7 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs}' deps = -r ./editable_requirements.txt -r ./dev_requirements.txt [testenv:unit-py38] basepython = python3.8 commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/unit' deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:integration-postgres-py38] basepython = python3.8 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_postgres {posargs} -n4 test/integration/*' /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs} -n4 test/rpc/*' deps = ./core ./plugins/postgres -r ./dev_requirements.txt [testenv:integration-snowflake-py38] basepython = python3.8 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_snowflake {posargs} -n4 test/integration/*' deps = ./core ./plugins/snowflake -r ./dev_requirements.txt [testenv:integration-bigquery-py38] basepython = python3.8 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_bigquery {posargs} -n4 test/integration/*' deps = ./core ./plugins/bigquery -r ./dev_requirements.txt [testenv:integration-redshift-py38] basepython = python3.8 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v -m profile_redshift {posargs} -n4 test/integration/*' deps = ./core ./plugins/postgres ./plugins/redshift -r ./dev_requirements.txt [testenv:explicit-py38] basepython = python3.8 passenv = * setenv = HOME=/home/tox commands = /bin/bash -c '{envpython} -m pytest --durations 0 -v {posargs}' deps = -r ./editable_requirements.txt -r ./dev_requirements.txt [testenv:pywin] basepython = {env:PYTHON:}\python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = pytest --durations 0 -v -m 'profile_postgres or profile_snowflake or profile_bigquery or profile_redshift' -n4 test/integration test/unit deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:pywin-unit] basepython = python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = python -m pytest --durations 0 -v {posargs} -n4 test/unit deps = -r ./requirements.txt -r ./dev_requirements.txt [testenv:pywin-postgres] basepython = python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = python -m pytest --durations 0 -v -m profile_postgres {posargs} -n4 test/integration deps = ./core ./plugins/postgres -r ./dev_requirements.txt [testenv:pywin-snowflake] basepython = python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = python -m pytest --durations 0 -v -m profile_snowflake {posargs} -n4 test/integration deps = ./core ./plugins/snowflake -r ./dev_requirements.txt [testenv:pywin-bigquery] basepython = python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = python -m pytest --durations 0 -v -m profile_bigquery {posargs} -n4 test/integration deps = ./core ./plugins/bigquery -r ./dev_requirements.txt [testenv:pywin-redshift] basepython = python.exe passenv = * setenv = DBT_CONFIG_DIR = ~/.dbt DBT_INVOCATION_ENV = ci-appveyor commands = python -m pytest --durations 0 -v -m profile_redshift {posargs} -n4 test/integration deps = ./core ./plugins/postgres ./plugins/redshift -r ./dev_requirements.txt