Skip to content

Commit

Permalink
build: tox leveraging conditional factors (apache#9828)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored May 18, 2020
1 parent b8eaa11 commit 52285ae
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ commands =
deps =
-rrequirements.txt
-rrequirements-dev.txt
mysql: .[mysql]
postgres: .[postgres]
setenv =
PYTHONPATH = {toxinidir}
SUPERSET_CONFIG = tests.superset_test_config
SUPERSET_HOME = {envtmpdir}
py36-mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
py36-postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://superset:superset@localhost/test
py36-sqlite: SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////{envtmpdir}/superset.db
mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://superset:superset@localhost/test
sqlite: SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////{envtmpdir}/superset.db
whitelist_externals =
npm

Expand Down Expand Up @@ -137,18 +139,6 @@ commands =
deps =
-rrequirements-dev.txt

[testenv:py36-mysql]
deps =
-rrequirements.txt
-rrequirements-dev.txt
.[mysql]

[testenv:py36-postgres]
deps =
-rrequirements.txt
-rrequirements-dev.txt
.[postgres]

[testenv:pylint]
commands =
pylint superset
Expand Down

0 comments on commit 52285ae

Please sign in to comment.