mirror of
https://github.com/apache/superset.git
synced 2024-09-17 19:19:38 -04:00
31a995714d
* Use sqlalchemy_uri_decrypted in create_engine calls * Update tox mysql uri * Include mysql charset=utf8 for py2.7 in tox.ini
116 lines
2.4 KiB
INI
116 lines
2.4 KiB
INI
[tox]
|
|
envlist =
|
|
py27-mysql
|
|
py27-sqlite
|
|
py27-postgres
|
|
py34-mysql
|
|
py35-mysql
|
|
skipsdist=True
|
|
|
|
[flake8]
|
|
accept-encodings = utf-8
|
|
application-import-names = superset
|
|
exclude =
|
|
.tox
|
|
docs
|
|
superset/assets
|
|
superset/data
|
|
superset/migrations
|
|
superset/templates
|
|
ignore =
|
|
FI12
|
|
FI15
|
|
FI16
|
|
FI17
|
|
FI50
|
|
FI51
|
|
FI53
|
|
FI54
|
|
import-order-style = google
|
|
max-line-length = 90
|
|
require-code = True
|
|
|
|
[global]
|
|
wheel_dir = {homedir}/.wheelhouse
|
|
find_links =
|
|
{homedir}/.wheelhouse
|
|
{homedir}/.pip-cache
|
|
|
|
[testenv]
|
|
deps =
|
|
wheel
|
|
coveralls
|
|
whitelist_externals =
|
|
pip
|
|
npm
|
|
passenv =
|
|
HOME
|
|
USER
|
|
TRAVIS_CACHE
|
|
PATH
|
|
commands =
|
|
python --version
|
|
pip wheel -w {homedir}/.wheelhouse -f {homedir}/.wheelhouse .
|
|
pip install --find-links={homedir}/.wheelhouse --no-index .
|
|
pip install -r dev-reqs.txt
|
|
{toxinidir}/run_tests.sh
|
|
|
|
[testenv:flake8]
|
|
commands =
|
|
pip install --upgrade flake8
|
|
flake8
|
|
deps =
|
|
flake8
|
|
flake8-coding
|
|
flake8-commas
|
|
flake8-future-import
|
|
flake8-import-order
|
|
flake8-quotes
|
|
|
|
[testenv:javascript]
|
|
commands =
|
|
npm install -g npm@'>=5.6.0'
|
|
{toxinidir}/superset/assets/js_build.sh
|
|
|
|
[testenv:pylint]
|
|
commands =
|
|
pip wheel -w {homedir}/.wheelhouse -f {homedir}/.wheelhouse .
|
|
pip install --find-links={homedir}/.wheelhouse --no-index .
|
|
pip install -r dev-reqs.txt
|
|
{toxinidir}/pylint-errors.sh
|
|
|
|
[testenv:py27-mysql]
|
|
basepython = python2.7
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
|
|
|
|
[testenv:py34-mysql]
|
|
basepython = python3.4
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset
|
|
|
|
[testenv:py35-mysql]
|
|
basepython = python3.5
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset
|
|
|
|
[testenv:py27-sqlite]
|
|
basepython = python2.7
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////tmp/superset.db
|
|
|
|
[testenv:py34-sqlite]
|
|
basepython = python3.4
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = sqlite:////tmp/superset.db
|
|
|
|
[testenv:py27-postgres]
|
|
basepython = python2.7
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://postgresuser:pguserpassword@localhost/superset
|
|
|
|
[testenv:py34-postgres]
|
|
basepython = python3.4
|
|
setenv =
|
|
SUPERSET__SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://postgresuser:pguserpassword@localhost/superset
|