forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
107 lines (94 loc) · 2.3 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
envlist =
py27-mysql
py27-sqlite
py27-postgres
py34-mysql
py35-mysql
skipsdist=True
[flake8]
application-import-names = superset
exclude =
.tox
docs
superset/assets
superset/data
superset/migrations
superset/templates
import-order-style = google
max-line-length = 90
[global]
wheel_dir = {homedir}/.wheelhouse
find_links =
{homedir}/.wheelhouse
{homedir}/.pip-cache
[testenv]
deps =
wheel
coveralls
whitelist_externals =
pip
npm
passenv =
HOME
TRAVIS
TRAVIS_BRANCH
TRAVIS_BUILD_DIR
TRAVIS_JOB_ID
USER
TRAVIS_CACHE
TRAVIS_PULL_REQUEST
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-commas
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://root@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