mirror of https://github.com/apache/superset.git
build: tox leveraging conditional factors (#9828)
This commit is contained in:
parent
b8eaa114ed
commit
52285aeb04
20
tox.ini
20
tox.ini
|
@ -23,13 +23,15 @@ commands =
|
||||||
deps =
|
deps =
|
||||||
-rrequirements.txt
|
-rrequirements.txt
|
||||||
-rrequirements-dev.txt
|
-rrequirements-dev.txt
|
||||||
|
mysql: .[mysql]
|
||||||
|
postgres: .[postgres]
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONPATH = {toxinidir}
|
PYTHONPATH = {toxinidir}
|
||||||
SUPERSET_CONFIG = tests.superset_test_config
|
SUPERSET_CONFIG = tests.superset_test_config
|
||||||
SUPERSET_HOME = {envtmpdir}
|
SUPERSET_HOME = {envtmpdir}
|
||||||
py36-mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
|
mysql: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
|
||||||
py36-postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://superset:superset@localhost/test
|
postgres: SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://superset:superset@localhost/test
|
||||||
py36-sqlite: SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////{envtmpdir}/superset.db
|
sqlite: SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////{envtmpdir}/superset.db
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
npm
|
npm
|
||||||
|
|
||||||
|
@ -137,18 +139,6 @@ commands =
|
||||||
deps =
|
deps =
|
||||||
-rrequirements-dev.txt
|
-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]
|
[testenv:pylint]
|
||||||
commands =
|
commands =
|
||||||
pylint superset
|
pylint superset
|
||||||
|
|
Loading…
Reference in New Issue